From 765d2c63dec558cbd9c41a6e71ecc4f4e827ae6a Mon Sep 17 00:00:00 2001 From: "OpenGenesis (MPL 2.0)" <153564363+opengenesislink@users.noreply.github.com> Date: Wed, 21 Oct 2026 13:28:08 +0200 Subject: [PATCH] ci: validate frontend scripts and deployment shell syntax --- .github/workflows/ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f7e6c5e..3346f3c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,3 +71,23 @@ jobs: GOOS: linux GOARCH: arm64 run: go build -trimpath -o /tmp/landwelle-adminpass-linux-arm64 ./cmd/adminpass + + frontend-static: + name: JavaScript and deployment-script checks + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Validate JavaScript syntax + run: | + find web/assets -name '*.js' -print0 | while IFS= read -r -d '' file; do + node --check "$file" + done + + - name: Validate shell scripts + run: | + find scripts -name '*.sh' -print0 | while IFS= read -r -d '' file; do + bash -n "$file" + done