Files
git.stella-ops.org/scripts/tests/run-policy-cli-tests.sh
StellaOps Bot d63af51f84
Some checks failed
api-governance / spectral-lint (push) Has been cancelled
Docs CI / lint-and-preview (push) Has been cancelled
oas-ci / oas-validate (push) Has been cancelled
SDK Publish & Sign / sdk-publish (push) Has been cancelled
Policy Lint & Smoke / policy-lint (push) Has been cancelled
Policy Simulation / policy-simulate (push) Has been cancelled
devportal-offline / build-offline (push) Has been cancelled
up
2025-11-26 20:23:28 +02:00

16 lines
540 B
Bash

#!/usr/bin/env bash
set -euo pipefail
# Run PolicyValidationCliTests with a minimal solution and graph-build disabled.
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
cd "$ROOT"
export DOTNET_DISABLE_BUILTIN_GRAPH=1
SOLUTION="src/Policy/StellaOps.Policy.only.sln"
dotnet restore "$SOLUTION" -v minimal
dotnet build src/Policy/__Tests/StellaOps.Policy.Tests/StellaOps.Policy.Tests.csproj -c Release --no-restore /p:BuildProjectReferences=false
dotnet test "$SOLUTION" -c Release --no-build --filter FullyQualifiedName~PolicyValidationCliTests