From dfc27fd885ca9e040ba94dba1d599439277d9a0a Mon Sep 17 00:00:00 2001 From: Jan-Peter von Hunnius Date: Tue, 1 Sep 2026 06:24:58 +0200 Subject: [PATCH] CI: add Lua syntax check workflow (luac5.4 -p over all .lua files) --- .gitea/workflows/build.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .gitea/workflows/build.yml diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..799723d --- /dev/null +++ b/.gitea/workflows/build.yml @@ -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