Skip to content

Gate gateway task/replay scenario retries in demo policy and release … #56

Gate gateway task/replay scenario retries in demo policy and release …

Gate gateway task/replay scenario retries in demo policy and release … #56

name: Release Strict Final Gate
on:
workflow_dispatch:
push:
branches:
- main
- master
jobs:
release-strict-final:
runs-on: windows-latest
timeout-minutes: 60
permissions:
contents: read
concurrency:
group: release-strict-final-${{ github.ref }}
cancel-in-progress: true
env:
FIRESTORE_ENABLED: "false"
UI_NAVIGATOR_EXECUTOR_MODE: remote_http
UI_NAVIGATOR_EXECUTOR_URL: http://localhost:8090
UI_EXECUTOR_STRICT_PLAYWRIGHT: "false"
UI_EXECUTOR_SIMULATE_IF_UNAVAILABLE: "true"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 24
cache: npm
- name: Install Dependencies
run: npm ci
shell: powershell
- name: Run Release Strict Final Gate
run: npm run verify:release:strict
shell: powershell
- name: Publish Release Report To Job Summary
if: always()
shell: powershell
run: |
if (Test-Path "artifacts/demo-e2e/summary.md") {
Get-Content "artifacts/demo-e2e/summary.md" | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Encoding utf8 -Append
} else {
"Demo report was not generated." | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Encoding utf8 -Append
}
if (Test-Path "artifacts/demo-e2e/policy-check.md") {
"" | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Encoding utf8 -Append
Get-Content "artifacts/demo-e2e/policy-check.md" | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Encoding utf8 -Append
}
if (Test-Path "artifacts/demo-e2e/policy-check.json") {
$policy = Get-Content "artifacts/demo-e2e/policy-check.json" -Raw | ConvertFrom-Json
"" | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Encoding utf8 -Append
("Policy gate status: " + ($(if ($policy.ok) { "passed" } else { "failed" }))) | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Encoding utf8 -Append
("Policy checks: " + $policy.checks + ", violations: " + $policy.violations.Count) | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Encoding utf8 -Append
}
if (Test-Path "artifacts/demo-e2e/badge.json") {
$badge = Get-Content "artifacts/demo-e2e/badge.json" -Raw | ConvertFrom-Json
("Badge: " + $badge.label + " -> " + $badge.message + " (" + $badge.color + ")") | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Encoding utf8 -Append
}
if (Test-Path "artifacts/perf-load/policy-check.json") {
$perf = Get-Content "artifacts/perf-load/policy-check.json" -Raw | ConvertFrom-Json
("Perf policy gate: " + ($(if ($perf.ok) { "passed" } else { "failed" })) + " (" + $perf.checks + " checks)") | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Encoding utf8 -Append
}
- name: Upload Release Strict Artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: release-strict-final-artifacts
path: |
artifacts/demo-e2e/summary.json
artifacts/demo-e2e/summary.md
artifacts/demo-e2e/policy-check.md
artifacts/demo-e2e/policy-check.json
artifacts/demo-e2e/badge.json
artifacts/demo-e2e/badge-details.json
artifacts/demo-e2e/logs
artifacts/perf-load/summary.json
artifacts/perf-load/summary.md
artifacts/perf-load/policy-check.json
artifacts/perf-load/policy-check.md
artifacts/perf-load/logs
if-no-files-found: warn