aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/lint.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/lint.yml')
-rw-r--r--.github/workflows/lint.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
new file mode 100644
index 00000000..fad473da
--- /dev/null
+++ b/.github/workflows/lint.yml
@@ -0,0 +1,22 @@
+name: lint
+
+on:
+ pull_request:
+ branches:
+ - master
+
+jobs:
+ lint:
+ runs-on: [ubuntu-latest]
+ steps:
+ - name: Checkout sources
+ uses: actions/checkout@v1
+ - name: Setup luacheck
+ run: |
+ sudo apt update &&
+ sudo apt install -y lua5.1 luarocks &&
+ sudo luarocks install luacheck
+ - name: Run luacheck
+ run: |
+ luacheck .
+