-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (49 loc) · 1.22 KB
/
ci.yml
File metadata and controls
58 lines (49 loc) · 1.22 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
58
name: CI
on:
pull_request:
branches:
- "**"
push:
branches:
- master
workflow_call:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Lint with luacheck
uses: lunarmodules/luacheck@v1
with:
args: lua/
format:
name: Check Formatting
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Check formatting with StyLua
uses: JohnnyMorganz/stylua-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: --check lua/
test:
name: Test Plugin
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Setup Neovim
uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: stable
- name: Test plugin loads
run: |
nvim --headless -c "set rtp+=." -c "lua require('netlinx').setup()" -c "q"
- name: Validate Tree-sitter queries
run: |
nvim --headless -c "set rtp+=." -c "lua vim.treesitter.query.get('netlinx', 'highlights')" -c "q"