File tree Expand file tree Collapse file tree 1 file changed +22
-8
lines changed Expand file tree Collapse file tree 1 file changed +22
-8
lines changed Original file line number Diff line number Diff line change @@ -16,19 +16,33 @@ jobs:
1616 shell : bash
1717 strategy :
1818 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+
2127 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' }}
2431 run : |
2532 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' }}
2843 run : |
2944 mkdir -p coverage
3045 TEST_DIR=$(pwd)/test VIMS=./vims kcov coverage ./test/test.sh
3146 - name : Upload coverage
47+ if : ${{ matrix.os == 'ubuntu-latest' }}
3248 run : bash <(curl -s https://codecov.io/bash) -s coverage
33-
34-
You can’t perform that action at this time.
0 commit comments