xpeditis2.0/scripts/ci/validate-workflows.sh
David e055af9afe
Some checks failed
Dev CI / Backend — Lint (push) Failing after 1m5s
Dev CI / Backend — Unit Tests (push) Has been skipped
Dev CI / Security gate (push) Failing after 1m20s
Dev CI / Frontend — Lint & Type-check (push) Successful in 1m46s
Dev CI / Frontend — Unit Tests (push) Successful in 1m21s
Dev CI / Notify Failure (push) Has been skipped
fix ci
2026-09-23 22:46:50 +02:00

12 lines
512 B
Bash

#!/usr/bin/env bash
set -euo pipefail
validator="${ACTIONLINT_BIN:-actionlint}"
# Actionlint parses GitHub syntax. Normalize only Gitea's absolute action URLs;
# this is static validation, not an act_runner execution test.
for workflow in .gitea/workflows/*.yml; do
sed 's#uses: https://github.com/#uses: #' "$workflow" |
"$validator" -config-file .gitea/actionlint.yaml -shellcheck='' -stdin-filename "$workflow" -
done
bash -n scripts/ci/*.sh
python3 -B -m unittest discover -s scripts/ci -p 'test_*.py'