-
Notifications
You must be signed in to change notification settings - Fork 87
45 lines (43 loc) · 1.06 KB
/
build.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
name: Build
on:
pull_request:
push:
branches: [main]
jobs:
stylua:
name: Check codestyle
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: JohnnyMorganz/stylua-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --color always --check .
version: 15.1
selene:
name: Lint
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: NTBBloodbath/selene-action@v1.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --color always ./lua
version: 0.24.0
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
path: none-ls.nvim
- uses: actions/checkout@v2
with:
repository: nvim-lua/plenary.nvim
path: none-ls.nvim/.tests/site/pack/deps/start/plenary.nvim
- uses: rhysd/action-setup-vim@v1
with:
neovim: true
- run: make test
working-directory: none-ls.nvim
timeout-minutes: 1