-
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (46 loc) · 1.33 KB
/
test.yml
File metadata and controls
53 lines (46 loc) · 1.33 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
name: test
on:
pull_request:
branches:
- main
paths:
- "lua/**"
- "tests/**"
jobs:
run_tests:
name: unit tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rev: [nightly, v0.9.0, stable]
steps:
- uses: actions/checkout@v4
- uses: rhysd/action-setup-vim@v1
name: Set up Neovim
with:
neovim: true
version: ${{ matrix.rev }}
- name: Run tests with Neovim
shell: bash
run: |
export PATH="${PWD}/_neovim/bin:${PATH}"
export VIM="${PWD}/_neovim/share/nvim/runtime"
nvim --version
nvim --headless --noplugin -u tests/minimal_init.lua -c "PlenaryBustedDirectory tests/pretty-ts-errors { minimal_init = './tests/minimal_init.lua'}"
- uses: actions/checkout@v4
- name: Install LuaJIT
uses: leafo/gh-actions-luajit@v10
with:
luaVersion: "luajit-2.1.0-beta3"
- name: Install luarocks
uses: leafo/gh-actions-luarocks@v4
- name: Install vusted
shell: bash
run: luarocks install vusted
- name: Run tests
shell: bash
run: |
export PATH="${PWD}/_neovim/bin:${PATH}"
export VIM="${PWD}/_neovim/share/nvim/runtime"
vusted --output=gtest tests/pretty-ts-errors