CI: add Lua syntax check workflow (luac5.4 -p over all .lua files)
Some checks failed
build / build-test (push) Failing after 11s
Some checks failed
build / build-test (push) Failing after 11s
This commit is contained in:
parent
3900d2a6b2
commit
dfc27fd885
1 changed files with 16 additions and 0 deletions
16
.gitea/workflows/build.yml
Normal file
16
.gitea/workflows/build.yml
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
name: build
|
||||||
|
on: [push, workflow_dispatch]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-test:
|
||||||
|
runs-on: docker
|
||||||
|
container: debian:bookworm
|
||||||
|
timeout-minutes: 10
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
run: git clone --depth 1 ${{ github.server_url }}/${{ github.repository }}.git .
|
||||||
|
|
||||||
|
- name: Lua syntax check
|
||||||
|
run: |
|
||||||
|
apt-get update -qq && apt-get install -y -qq lua5.4
|
||||||
|
find . -name '*.lua' -not -path './.git/*' -print0 | xargs -0 -n1 luac5.4 -p
|
||||||
Loading…
Add table
Add a link
Reference in a new issue