-
Notifications
You must be signed in to change notification settings - Fork 26
54 lines (51 loc) · 1.38 KB
/
main.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
name: Checks
on:
push:
branches:
- main
- gha-selene-check
pull_request:
branches:
- main
jobs:
test:
name: Run plenary tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: rhysd/action-setup-vim@v1
with:
neovim: true
- name: setup plenary
run: |
mkdir -p ~/.local/share/nvim/site/pack/vendor/start
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
run: make test
lint:
name: Lint with selene and stylua
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: JohnnyMorganz/stylua-action@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: 0.19.1
args: --color always --check .
- uses: NTBBloodbath/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --display-style=quiet .
version: 0.26.1
types:
name: Check types with luals
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gsuuon/nvim-typecheck-action@annotate
with:
path: lua/model
configpath: .luarc.json
luals-version: 3.7.4
annotate: true