-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (35 loc) · 1.01 KB
/
lint.yaml
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
name: Linting
on:
push:
paths: ["**.lua", ".github/workflows/lint.yaml"]
pull_request:
paths: ["**.lua", ".github/workflows/lint.yaml"]
workflow_dispatch:
jobs:
lint-selene:
name: Lint Lua with Selene
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: NTBBloodbath/selene-action@v1.0.0
with:
# Github secret token
token: ${{ secrets.GITHUB_TOKEN }}
# selene arguments
args: . --config .selene.toml
# selene version
version: 0.23.1
# Multiple linters never hurt :)
lint-illuaminate:
name: Lint Lua with Illuaminate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Lint Lua code
run: |
test -d bin || mkdir bin
test -f bin/illuaminate || wget -q -Obin/illuaminate https://squiddev.cc/illuaminate/linux-x86-64/illuaminate
chmod +x bin/illuaminate
bin/illuaminate lint