Automated testing with Luacheck (#533)

This commit is contained in:
Thomas Croft 2022-06-11 03:39:21 -06:00 committed by GitHub
parent dbf6e9cfb1
commit aa2f9138f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 0 deletions

12
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,12 @@
name: Luacheck
on: [push]
jobs:
Luacheck_Tests:
runs-on: ubuntu-latest
steps:
- run: echo "Running tests triggered by a ${{ github.event_name }} event."
- run: echo "Testing ${{ github.ref }} from ${{ github.repository }} on ${{ runner.os }}"
- name: Check out code
uses: actions/checkout@v3
- name: Run tests
uses: lunarmodules/luacheck@v0

11
.luacheckrc Normal file
View File

@ -0,0 +1,11 @@
codes = true
allow_defined = true
max_line_length = false
globals = {
"client", "screen", "mouse"
}
ignore = {
"131",
}