-
-
Notifications
You must be signed in to change notification settings - Fork 259
42 lines (40 loc) · 1.11 KB
/
tests.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
---
name: Tests
on:
pull_request:
push:
paths-ignore:
- "*.md"
branches:
- main
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # Run every day at midnight UTC
jobs:
ubuntu:
name: Plenary
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
path: nvim
- uses: actions/checkout@v3
with:
ref: user-configs
path: user-configs
- run: |
mv user-configs/tests/* nvim/tests/
- name: Install Neovim
uses: MunifTanjim/setup-neovim-action@v1
with:
tag: nightly
- name: Fetch dependencies
run: |
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim
ln -s $(pwd) ~/.local/share/nvim/site/pack/vendor/start
- name: Run tests
working-directory: ./nvim
run: |
nvim --version
[ ! -d tests ] && exit 0
nvim --headless -u tests/minimal_init.vim -c "PlenaryBustedDirectory tests/ {minimal_init = 'tests/minimal_init.vim', sequential = true}"