-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
60 lines (60 loc) · 1.72 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: test
on: [push, pull_request]
jobs:
lint:
name: lint
runs-on: ubuntu-20.04
steps:
- name: set up python
uses: actions/[email protected]
with:
python-version: 3.6
- name: install vim-vint
run: |
python -m pip install --upgrade pip
pip install vim-vint pathlib
- name: checkout
uses: actions/[email protected]
- name: install vim
run: $GITHUB_WORKSPACE/scripts/install-vim vim-8.2
- name: install tools
run: $GITHUB_WORKSPACE/scripts/install-tools vim-8.2
- name: lint
run: $GITHUB_WORKSPACE/scripts/lint vim-8.2
test:
name: test
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
go: ['1.20','1.21']
vim: ['vim-8.1', 'vim-8.2', 'nvim']
steps:
- name: setup Go
uses: actions/[email protected]
with:
go-version: ${{ matrix.go }}
- name: set up python
uses: actions/[email protected]
with:
python-version: 3.6
- name: install covimerage
run: |
python -m pip install --upgrade pip
pip install click==7.1.2 covimerage==0.2.1 codecov pathlib
- name: checkout
uses: actions/[email protected]
- name: install vim
run: $GITHUB_WORKSPACE/scripts/install-vim ${{ matrix.vim }}
- name: install tools
run: $GITHUB_WORKSPACE/scripts/install-tools ${{ matrix.vim }}
- name: test
run: $GITHUB_WORKSPACE/scripts/test -c ${{ matrix.vim }}
- uses: codecov/codecov-action@v1
with:
# token is not required for public repos
#token: ${{ secrets.CODECOV_TOKEN }}
file: $GITHUB_WORKSPACE/coverage.xml
flags: unittests
name: vim-go
fail_ci_if_error: false