forked from ThePrimeagen/git-worktree.nvim
-
-
Notifications
You must be signed in to change notification settings - Fork 16
56 lines (48 loc) · 1.42 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
46
47
48
49
50
51
52
53
54
55
56
name: test
on:
pull_request:
jobs:
test:
name: Run Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: rhysd/action-setup-vim@v1
id: vim
with:
neovim: true
version: nightly
- name: luajit
uses: leafo/gh-actions-lua@v10
with:
luaVersion: "luajit-2.1.0-beta3"
- uses: notomo/action-setup-nvim-lua@v1
- run: luarocks install vusted
- run: luarocks install luacheck
- name: install plenary.nvim
if: matrix.os != 'windows-latest'
run: |
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim ~/.local/share/nvim/site/pack/vendor/start/plenary
- name: install plenary.nvim on windows
if: matrix.os == 'windows-latest'
run: |
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim ./plenary
- name: Run tests
if: matrix.os != 'windows-latest'
shell: bash
env:
VUSTED_NVIM: ${{ steps.vim.outputs.executable }}
VUSTED_ARGS: "--headless"
run: |
make test
- name: Run tests
if: matrix.os == 'windows-latest'
shell: bash
env:
VUSTED_NVIM: ${{ steps.vim.outputs.executable }}
VUSTED_ARGS: "--headless"
run: |
make wintest