File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 8
8
9
9
jobs :
10
10
11
+ check :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/checkout@v2
15
+ # We need a newer version of shellcheck to avoid problems with the
16
+ # relative imports. Our scripts work on v0.7.2 and up but not the
17
+ # v0.7.0 preinstalled in the ubutnu image
18
+ - name : Update shellcheck
19
+ run : |
20
+ shellcheck_version="v0.8.0"
21
+ url="https://github.com/koalaman/shellcheck/releases/download/${shellcheck_version}/shellcheck-${shellcheck_version}.linux.x86_64.tar.xz"
22
+ curl -Lo /tmp/shellcheck.tar.xz "$url"
23
+ mkdir /tmp/shellcheck
24
+ tar -xf /tmp/shellcheck.tar.xz -C /tmp/shellcheck
25
+ mkdir -p ~/bin
26
+ install -m0755 /tmp/shellcheck/shellcheck-${shellcheck_version}/shellcheck ~/bin/shellcheck
27
+ - name : Show shellcheck version
28
+ run : $HOME/bin/shellcheck --version
29
+ - name : Run static check tools
30
+ run : make check SHELLCHECK=$HOME/bin/shellcheck
31
+
11
32
build-server :
12
33
runs-on : ubuntu-latest
13
34
env :
You can’t perform that action at this time.
0 commit comments