Initial commit: AetherForge Linux (forge-mesh) v0.1.0-dev
Some checks failed
Test / test (push) Has been cancelled
Some checks failed
Test / test (push) Has been cancelled
This commit is contained in:
25
scripts/ci-test.sh
Executable file
25
scripts/ci-test.sh
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env bash
|
||||
# CI entrypoint — mirrors .github/workflows/test.yml locally
|
||||
set -euo pipefail
|
||||
|
||||
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
cd "$ROOT"
|
||||
|
||||
export GOROOT="${GOROOT:-/usr/local/go}"
|
||||
export PATH="${GOROOT}/bin:${PATH}"
|
||||
export CGO_ENABLED=1
|
||||
|
||||
echo "==> [ci] environment"
|
||||
go version
|
||||
node --version 2>/dev/null || echo "node: not installed (frontend may skip)"
|
||||
npm --version 2>/dev/null || true
|
||||
|
||||
echo "==> [ci] go mod tidy + build"
|
||||
go mod tidy
|
||||
go build ./...
|
||||
|
||||
echo "==> [ci] full test suite"
|
||||
SKIP_E2E="${SKIP_E2E:-0}" SKIP_FRONTEND="${SKIP_FRONTEND:-0}" \
|
||||
CONTINUE_ON_FAIL=0 ./scripts/test-all.sh
|
||||
|
||||
echo "✓ ci-test complete"
|
||||
Reference in New Issue
Block a user