-
Notifications
You must be signed in to change notification settings - Fork 18
54 lines (43 loc) · 1.12 KB
/
ci.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: CI
on:
push:
branches: 'master'
pull_request:
branches: 'master'
schedule:
- cron: 0 0 * * *
jobs:
linux:
strategy:
matrix:
version: [stable, v0.7.0, nightly]
runs-on: ubuntu-latest
env:
NVIM_TEST_VERSION: ${{ matrix.version }}
steps:
- uses: actions/checkout@v3
- name: Setup lua
uses: leafo/gh-actions-lua@v10
with:
luaVersion: "luajit-openresty"
- name: Setup luarocks
uses: leafo/gh-actions-luarocks@v4
- name: Setup vusted
run: |
luarocks install vusted
- name: Run functional tests
env:
NVIM_TEST_VERSION: ${{ matrix.version }}
NVIM_RUNNER_VERSION: v0.10.2
run: |
make functionaltest
- name: Run unit tests
run: |
export VUSTED_NVIM=$HOME/.data/nvim-test/nvim-test-${{ matrix.version }}/bin/nvim
make unittest
- name: Check formatting
uses: JohnnyMorganz/stylua-action@v4
with:
version: v0.20.0
token: ${{ secrets.GITHUB_TOKEN }}
args: --check lua/ test/