summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaleb Maclennan <caleb@alerque.com>2023-12-22 00:44:00 +0300
committerGitHub <noreply@github.com>2023-12-22 00:44:00 +0300
commitf4e92f6291617cd989126510a7dc653e8cf28799 (patch)
tree35b896aa4766dd3fc5b1d147744b92b85178dab8
parentc06963917ccc951a1058d7b7f412c52d3c4f443a (diff)
downloadluasystem-f4e92f6291617cd989126510a7dc653e8cf28799.zip
ci: Replace custom workflow installing Luacheck with dedicated action (#14)
-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 @@
-name: Lint
-
-concurrency:
- # for PR's cancel the running task, if another commit is pushed
- group: ${{ github.workflow }} ${{ github.ref }}
- cancel-in-progress: ${{ github.event_name == 'pull_request' }}
-
-on:
- # build on PR and push-to-main. This works for short-lived branches, and saves
- # CPU cycles on duplicated tests.
- # For long-lived branches that diverge, you'll want to run on all pushes, not
- # just on push-to-main.
- pull_request: {}
- push:
- branches:
- - master
-
-
-jobs:
- lint:
- runs-on: ubuntu-20.04
- steps:
- - name: Checkout
- uses: actions/checkout@v3
-
- - uses: leafo/gh-actions-lua@v10
- with:
- luaVersion: "5.4"
-
- - uses: leafo/gh-actions-luarocks@v4
-
- - name: dependencies
- run: |
- luarocks install luacheck
-
- - name: lint
- run: |
- 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 @@
+name: Luacheck
+
+on: [push, pull_request]
+
+jobs:
+
+ luacheck:
+ runs-on: ubuntu-22.04
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+ - name: Luacheck
+ uses: lunarmodules/luacheck@v1