Skip to content

Commit 234e86d

Browse files
committed
Add new file .github/workflows/ci.yml
1 parent d722133 commit 234e86d

1 file changed

Lines changed: 62 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: CI
2+
on:
3+
- push
4+
- pull_request
5+
jobs:
6+
test:
7+
strategy:
8+
matrix:
9+
vim_version:
10+
- head
11+
- v8.2.0000
12+
- v8.1.0001
13+
- v8.0.0002
14+
- v7.4
15+
platform:
16+
- Linux
17+
- Windows
18+
include:
19+
- platform: Linux
20+
os: ubuntu-latest
21+
download: never
22+
- platform: Windows
23+
os: windows-latest
24+
download: always
25+
fail-fast: false
26+
name: Vim ${{ matrix.vim_version }} on ${{ matrix.platform }}
27+
runs-on: ${{ matrix.os }}
28+
env:
29+
PROFILE: profile.txt
30+
timeout-minutes: 10
31+
steps:
32+
- name: Checkout code
33+
uses: actions/checkout@v2
34+
- name: Checkout themis.vim
35+
uses: actions/checkout@v2
36+
with:
37+
repository: thinca/vim-themis
38+
path: vim-themis
39+
- name: Setup Vim
40+
id: vim
41+
uses: thinca/action-setup-vim@v1
42+
with:
43+
vim_version: ${{ matrix.vim_version }}
44+
download: ${{ matrix.download }}
45+
- name: Setup Python
46+
uses: actions/setup-python@v2
47+
- name: Install covimerage
48+
run: |
49+
python -m pip install -U pip setuptools wheel
50+
pip install -U covimerage
51+
- name: Test
52+
env:
53+
THEMIS_VIM: ${{ steps.vim.outputs.executable }}
54+
run: ./vim-themis/bin/themis --reporter spec
55+
- name: Run covimerage
56+
run: |
57+
covimerage write_coverage ${{ env.PROFILE }}
58+
covimerage xml
59+
- name: Upload coverage to Codecov
60+
uses: codecov/codecov-action@v1
61+
with:
62+
flags: ${{ matrix.platform }}

0 commit comments

Comments
 (0)