File tree 1 file changed +22
-8
lines changed
1 file changed +22
-8
lines changed Original file line number Diff line number Diff line change @@ -16,19 +16,33 @@ jobs:
16
16
shell : bash
17
17
strategy :
18
18
matrix :
19
- os : [ubuntu-latest]
20
-
19
+ os :
20
+ - ubuntu-latest
21
+ - macos-latest
22
+ - windows-latest
23
+ vim :
24
+ - ' 9.0.2190'
25
+ - ' 8.2.5172'
26
+
21
27
steps :
22
- - uses : actions/checkout@v1.0.0
23
- - name : Install dependencies
28
+ - uses : actions/checkout@v4
29
+ - name : Install coverage dependencies
30
+ if : ${{ matrix.os == 'ubuntu-latest' }}
24
31
run : |
25
32
sudo apt-get update
26
- sudo apt-get install -y libcurl4-openssl-dev libelf-dev libdw-dev cmake vim kcov
27
- - name : Run tests
33
+ sudo apt-get install -y libcurl4-openssl-dev libelf-dev libdw-dev cmake kcov
34
+ - uses : rhysd/action-setup-vim@v1
35
+ with :
36
+ version : ${{ matrix.vim }}
37
+ - name : Run tests without coverage
38
+ if : ${{ matrix.os != 'ubuntu-latest' }}
39
+ run : |
40
+ TEST_DIR=$(pwd)/test VIMS=./vims ./test/test.sh
41
+ - name : Run tests with coverage
42
+ if : ${{ matrix.os == 'ubuntu-latest' }}
28
43
run : |
29
44
mkdir -p coverage
30
45
TEST_DIR=$(pwd)/test VIMS=./vims kcov coverage ./test/test.sh
31
46
- name : Upload coverage
47
+ if : ${{ matrix.os == 'ubuntu-latest' }}
32
48
run : bash <(curl -s https://codecov.io/bash) -s coverage
33
-
34
-
You can’t perform that action at this time.
0 commit comments