-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.1 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
# .github/workflows/ci.yml
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
neovim-version: ["stable", "nightly"]
lua-version: ["5.1", "5.4"]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Lua
uses: leafo/gh-actions-lua@v9
with:
luaVersion: ${{ matrix['lua-version'] }}
- name: Set up Neovim
uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: ${{ matrix['neovim-version'] }}
- name: Install Dependencies
run: |
nvim --headless +'!mkdir -p ~/.local/share/nvim/site/pack/plugins/start' +qall
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim \
~/.local/share/nvim/site/pack/plugins/start/plenary.nvim
- name: Run Tests
run: |
nvim --headless \
-u tests/minimal_init.vim \
-c "PlenaryBustedDirectory tests/ { minimal_init = './tests/minimal_init.vim' }"