File tree Expand file tree Collapse file tree 3 files changed +42
-5
lines changed Expand file tree Collapse file tree 3 files changed +42
-5
lines changed Original file line number Diff line number Diff line change
1
+ name : Test and build
2
+
3
+ on : [push]
4
+
5
+ jobs :
6
+ build :
7
+ strategy :
8
+ matrix :
9
+ os : ['ubuntu-latest', 'macos-latest']
10
+ runs-on : ${{ matrix.os }}
11
+
12
+ steps :
13
+ - name : Install Dependencies (Linux)
14
+ run : |
15
+ sudo apt-get update -y
16
+ sudo apt-get install -y devscripts debhelper moreutils fakeroot jq
17
+ wget "https://storage.googleapis.com/shellcheck/shellcheck-v0.7.0.linux.x86_64.tar.xz"
18
+ tar --xz -xvf "shellcheck-v0.7.0.linux.x86_64.tar.xz"
19
+ sudo cp shellcheck-v0.7.0/shellcheck /usr/bin/shellcheck
20
+ if : matrix.os == 'ubuntu-latest'
21
+ - name : Install Dependencies (macOS)
22
+ run : |
23
+ brew install gnu-tar shellcheck jq
24
+ brew unlink parallel
25
+ brew install moreutils
26
+ if : matrix.os == 'macos-latest'
27
+ - name : Get Sources
28
+ uses : actions/checkout@v2
29
+ - name : Test
30
+ run : |
31
+ export PATH="$PATH:/snap/bin"
32
+ make test
33
+ shell : bash
34
+ - name : Build
35
+ run : debuild -uc -us
36
+ if : matrix.os == 'ubuntu-latest'
37
+
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ matrix:
14
14
dist : trusty
15
15
sudo : required
16
16
install :
17
- - wget "https://storage.googleapis.com/shellcheck/shellcheck-v0.4.7 .linux.x86_64.tar.xz"
18
- - tar --xz -xvf "shellcheck-v0.4.7 .linux.x86_64.tar.xz"
17
+ - wget "https://storage.googleapis.com/shellcheck/shellcheck-v0.7.0 .linux.x86_64.tar.xz"
18
+ - tar --xz -xvf "shellcheck-v0.7.0 .linux.x86_64.tar.xz"
19
19
addons :
20
20
apt :
21
21
packages :
Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ BASE_PATH=$(cd "$(dirname "$0")/../" && pwd)
9
9
begin_test " shellcheck: reports no errors or warnings"
10
10
(
11
11
set -e
12
- # We manually install Shellcheck 0.4.7 on Travis Linux builds as other options
12
+ # We manually install Shellcheck 0.7.0 on Linux builds as other options
13
13
# are too old.
14
- if [ -x " $BASE_PATH /shellcheck-v0.4.7 /shellcheck" ]; then
15
- shellcheck () { " $BASE_PATH /shellcheck-v0.4.7 /shellcheck" " $@ " ; }
14
+ if [ -x " $BASE_PATH /shellcheck-v0.7.0 /shellcheck" ]; then
15
+ shellcheck () { " $BASE_PATH /shellcheck-v0.7.0 /shellcheck" " $@ " ; }
16
16
fi
17
17
18
18
if ! type shellcheck 1> /dev/null 2>&1 ; then
You can’t perform that action at this time.
0 commit comments