File tree 1 file changed +46
-0
lines changed
1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Tests
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
8
+ branches :
9
+ - main
10
+
11
+ jobs :
12
+ shellcheck :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - name : Checkout repository
16
+ uses : actions/checkout@v3
17
+
18
+ - name : Install shellcheck
19
+ run : |
20
+ sudo apt-get update && sudo apt-get install -y shellcheck
21
+
22
+ - name : Run shellcheck
23
+ run : |
24
+ shellcheck wcurl tests/*
25
+
26
+ test :
27
+ runs-on : ${{ matrix.os }}
28
+ strategy :
29
+ matrix :
30
+ os : [ubuntu-latest, macos-latest]
31
+ steps :
32
+ - name : Checkout repository
33
+ uses : actions/checkout@v3
34
+
35
+ - name : Install shunit2
36
+ run : |
37
+ if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
38
+ sudo apt-get update
39
+ sudo apt-get install -y shunit2
40
+ elif [[ "${{ matrix.os }}" == "macos-latest" ]]; then
41
+ brew install shunit2
42
+ fi
43
+
44
+ - name : Run shunit2 tests
45
+ run : |
46
+ shunit2 ./tests/*
You can’t perform that action at this time.
0 commit comments