-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (47 loc) · 1.19 KB
/
Copy pathci.yml
File metadata and controls
57 lines (47 loc) · 1.19 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
54
55
56
57
name: CI
on:
pull_request:
paths:
- ".github/workflows/ci.yml"
- "lua/**"
- "plugin/**"
- "tests/**"
push:
branches:
- main
paths:
- ".github/workflows/ci.yml"
- "lua/**"
- "plugin/**"
- "tests/**"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Neovim tests
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y git lua5.1 tmux
- name: Install Neovim
uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: stable
- name: Check generated help tags
run: |
nvim --headless -u NONE -i NONE -c 'helptags doc' -c 'if &modified | cquit | endif' -c qa
git diff --exit-code -- doc/tags
- name: Run unit specs
run: nvim --headless -u tests/run.lua
- name: Run integration specs
run: tests/integration/run.sh
- name: Check whitespace
run: git diff --check