-
Notifications
You must be signed in to change notification settings - Fork 29
61 lines (55 loc) · 1.41 KB
/
lint.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
55
56
57
58
59
60
61
name: lint
on:
pull_request:
branches:
- main
jobs:
lint:
name: Lint with selene
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Run selene
uses: NTBBloodbath/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --display-style=quiet .
style-lint:
name: Stylua check
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Lint with stylua
uses: JohnnyMorganz/stylua-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: --check .
typecheck:
name: Typecheck sources
strategy:
matrix:
os: [ubuntu-latest]
neovim_version: ["v0.10.1"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Checkout luvit types
uses: actions/checkout@v4
with:
repository: Bilal2453/luvit-meta
path: deps/luvit-meta
- name: Checkout Neovim Types
uses: actions/checkout@v4
with:
repository: neovim/neovim
path: deps/neovim
- name: Type Check Code Base
uses: mrcjkb/lua-typecheck-action@v1
with:
configpath: .github/workflows/.luarc.json
directories: |
lua