-
Notifications
You must be signed in to change notification settings - Fork 0
75 lines (66 loc) · 2 KB
/
validation_ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Validation CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
env:
TERM: xterm
jobs:
bash-lint:
name: Validate with ShellCheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Lint with shellcheck
uses: ludeeus/action-shellcheck@master
with:
ignore_names: offloadcoredata usei2p usetor
bash-format:
name: Validate with shfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Lint with shfmt
uses: luizm/action-sh-checker@master
env:
SHFMT_OPTS: -i 2 -sr
with:
sh_checker_shellcheck_disable: true
sh_checker_exclude: offloadcoredata usei2p usetor
markdown-links:
name: Validate with markdown-link-check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Run markdown-link-check on Documentation
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-verbose-mode: 'yes'
markdown-spellcheck:
name: Validate with PySpelling
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: rojopolis/spellcheck-github-actions@v0
name: Spell Check Markdown Files
with:
output_file: spellcheck-output.txt
- uses: actions/upload-artifact@v3
if: '!cancelled()'
with:
name: Spellcheck Output
path: spellcheck-output.txt
run-nodebuilder:
name: Execute nodebuilder
runs-on: ubuntu-latest
needs: [bash-lint, bash-format, markdown-links, markdown-spellcheck]
steps:
- uses: actions/checkout@v4
- name: Install system upgrades
run: sudo apt-get update && sudo NEEDRESTART_MODE=a apt-get dist-upgrade -y
- name: Install runtime dependency libxcb-xinerama0
run: sudo apt-get update && sudo apt-get install -y libxcb-xinerama0
- name: Run nodebuilder
run: timeout 7200 /bin/bash -x ./nodebuilder