-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (33 loc) · 866 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
29
30
31
32
33
34
35
36
37
38
name: Tests
run-name: Abyss.nvim tests
on:
pull_request:
paths:
- "lua/*"
- "test/*"
- "colors/*"
branches: ["main", "develop"]
push:
paths:
- "lua/*"
- "test/*"
- "colors/*"
branches: main
jobs:
build:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Neovim
uses: MunifTanjim/setup-neovim-action@v1
with:
tag: nightly
- name: Install plenary
run: |
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim test/plenary
- name: Run tests
run: |
nvim --version
[ ! -d test ] && exit 0
nvim --headless --noplugin -u test/minimal_init.vim -c "PlenaryBustedDirectory ./test/abyss { minimal_init = './test/minimal_init.vim', sequential = true}"