-
Notifications
You must be signed in to change notification settings - Fork 21
57 lines (48 loc) · 1 KB
/
test.yml
File metadata and controls
57 lines (48 loc) · 1 KB
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
name: test
on:
workflow_dispatch:
push:
branches:
- main
paths:
- '**/*.lua'
- 'Makefile'
- '.github/workflows/test.yml'
pull_request:
branches:
- main
paths:
- '**/*.lua'
- 'Makefile'
- '.github/workflows/test.yml'
jobs:
test:
strategy:
matrix:
version:
- nightly
- stable
- v0.9.0
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup neovim
uses: rhysd/action-setup-vim@v1
with:
version: ${{ matrix.version }}
neovim: true
- name: Setup lua
uses: leafo/gh-actions-lua@v8
with:
luaVersion: luajit-2.1.0-beta3
- name: Setup luarocks
uses: leafo/gh-actions-luarocks@v4
- name: Setup tools
shell: bash
run: |
luarocks --lua-version=5.1 install luacheck
luarocks --lua-version=5.1 install vusted
- name: Run test
shell: bash
run: make