synvael/.forgejo/scripts/run-selene.sh
Serkyo 205f9cd0f7
Some checks failed
CI / Rust Check & Lint (push) Has been cancelled
CI / Rust Tests (push) Has been cancelled
CI / Lua Lint & Format (push) Has been cancelled
CI / LFS Pointer Guard (push) Has been cancelled
ci(workspace): migrate github configs to forgejo
2026-08-07 00:27:09 +02:00

15 lines
573 B
Bash
Executable file

#!/usr/bin/env bash
# Downloads a pinned selene release and lints the repository's Lua sources.
#
# selene publishes no maintained GitHub Action, so the linter binary is fetched per run. The version is pinned so that an upstream release cannot change CI results without a deliberate commit here.
set -euo pipefail
SELENE_VERSION="0.30.1"
SELENE_URL="https://github.com/Kampfkarren/selene/releases/download/${SELENE_VERSION}/selene-light-${SELENE_VERSION}-linux.zip"
curl -sL "$SELENE_URL" -o selene.zip
unzip -q selene.zip
chmod +x selene
./selene assets/scripts/ mods/