-
Notifications
You must be signed in to change notification settings - Fork 20
28 lines (28 loc) · 932 Bytes
/
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
name: test
on: [pull_request, workflow_dispatch]
jobs:
lua:
strategy:
matrix:
version: [stable, nightly]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Neovim setup
uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: ${{ matrix.version }}
- name: Set up pkgx with LuaJIT and LuaRocks
uses: pkgxdev/setup@v1
with:
+: luajit.org@2 luarocks.org
- name: Install neotest
run: luarocks --lua-dir=$HOME/.pkgx/luajit.org/v2 --lua-version=5.1 install neotest
- name: Install nvim-treesitter
run: luarocks --lua-dir=$HOME/.pkgx/luajit.org/v2 --lua-version=5.1 install nvim-treesitter
- name: Install busted
run: luarocks --lua-dir=$HOME/.pkgx/luajit.org/v2 --lua-version=5.1 install busted
- name: Run tests
run: make unit-test