-
Notifications
You must be signed in to change notification settings - Fork 14
54 lines (46 loc) · 1.16 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
name: test
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
test:
name: Neovim ${{ matrix.neovim-version }}
strategy:
fail-fast: false
matrix:
neovim-version:
- v0.8.3
- v0.9.5
- nightly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Neovim
uses: rhysd/action-setup-vim@v1
id: nvim
with:
neovim: true
version: ${{ matrix.neovim-version }}
- name: Setup lua
uses: leafo/gh-actions-lua@v9
with:
luaVersion: "luajit-2.1.0-beta3"
- name: Setup luarocks
uses: leafo/gh-actions-luarocks@v4
- name: Install luarocks dependencies
run: |
luarocks --lua-version=5.1 install vusted
luarocks --lua-version=5.1 install cluacov
- name: Run tests & generate coverage report
run: make test
env:
VUSTED_NVIM: ${{ steps.nvim.outputs.executable }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
file: luacov.report.out