aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/lint.yml38
-rw-r--r--.github/workflows/luacheck.yml13
2 files changed, 13 insertions, 38 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
deleted file mode 100644
index 0b54968..0000000
--- a/.github/workflows/lint.yml
+++ /dev/null
@@ -1,38 +0,0 @@
1name: Lint
2
3concurrency:
4 # for PR's cancel the running task, if another commit is pushed
5 group: ${{ github.workflow }} ${{ github.ref }}
6 cancel-in-progress: ${{ github.event_name == 'pull_request' }}
7
8on:
9 # build on PR and push-to-main. This works for short-lived branches, and saves
10 # CPU cycles on duplicated tests.
11 # For long-lived branches that diverge, you'll want to run on all pushes, not
12 # just on push-to-main.
13 pull_request: {}
14 push:
15 branches:
16 - master
17
18
19jobs:
20 lint:
21 runs-on: ubuntu-20.04
22 steps:
23 - name: Checkout
24 uses: actions/checkout@v3
25
26 - uses: leafo/gh-actions-lua@v10
27 with:
28 luaVersion: "5.4"
29
30 - uses: leafo/gh-actions-luarocks@v4
31
32 - name: dependencies
33 run: |
34 luarocks install luacheck
35
36 - name: lint
37 run: |
38 luacheck .
diff --git a/.github/workflows/luacheck.yml b/.github/workflows/luacheck.yml
new file mode 100644
index 0000000..9cb784c
--- /dev/null
+++ b/.github/workflows/luacheck.yml
@@ -0,0 +1,13 @@
1name: Luacheck
2
3on: [push, pull_request]
4
5jobs:
6
7 luacheck:
8 runs-on: ubuntu-22.04
9 steps:
10 - name: Checkout
11 uses: actions/checkout@v4
12 - name: Luacheck
13 uses: lunarmodules/luacheck@v1