Files
git.stella-ops.org/scripts/tests/run-policy-cli-tests.ps1
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

15 lines
582 B
PowerShell

$ErrorActionPreference = "Stop"
# Runs PolicyValidationCliTests using the minimal policy-only solution with graph build disabled.
$Root = Split-Path -Parent (Split-Path -Parent $PSCommandPath)
Set-Location $Root
$env: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