-
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (45 loc) · 1.21 KB
/
Copy pathci.yml
File metadata and controls
57 lines (45 loc) · 1.21 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:
push:
branches: ["master"]
pull_request:
branches: ["master"]
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Lua
uses: leafo/gh-actions-lua@v10
with:
luaVersion: "5.4"
- name: Setup LuaRocks
uses: leafo/gh-actions-luarocks@v4
- name: Install lint tools
run: |
luarocks install luacheck
cargo install stylua --version 0.20.0
cargo install selene --version 0.27.1
- name: Run luacheck
run: luacheck --config .luacheckrc ./lua
- name: Run stylua (check)
run: stylua --check lua/
- name: Run selene
run: selene --display-style=quiet lua/
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Lua
uses: leafo/gh-actions-lua@v10
with:
luaVersion: "5.4"
- name: Setup Neovim
uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: stable
- name: Run tests
run: |
nvim --headless -u ./test/config/minit.lua --noplugin -c 'lua require("down.test").run()' -c 'qa!'