Skip to content

Make DocGen audit token-safe and harden model artifact recovery #286

Make DocGen audit token-safe and harden model artifact recovery

Make DocGen audit token-safe and harden model artifact recovery #286

Workflow file for this run

name: Windows diagnostic
on:
pull_request:
permissions:
contents: read
jobs:
windows-test:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
- name: Syntax check
working-directory: global-template/docgen
run: npm run check
- name: Unit and integration tests with concise failure artifact
working-directory: global-template/docgen
shell: pwsh
run: |
npm test *> test-output.log
$exitCode = $LASTEXITCODE
if ($exitCode -ne 0) {
Select-String -Path test-output.log -Pattern 'not ok|AssertionError|ERR_ASSERTION|error:|failureType|expected:|actual:|operator:|stack:' -Context 6,20 | Out-String -Width 500 | Set-Content failure-context.txt
Get-Content failure-context.txt
exit $exitCode
}
Get-Content test-output.log -Tail 30
- name: Upload Windows failure context
if: always()
uses: actions/upload-artifact@v4
with:
name: windows-failure-context
if-no-files-found: error
retention-days: 3
path: global-template/docgen/failure-context.txt