Make DocGen audit token-safe and harden model artifact recovery #284
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 output | |
| working-directory: global-template/docgen | |
| shell: pwsh | |
| run: | | |
| npm test *> test-output.log | |
| $exitCode = $LASTEXITCODE | |
| if ($exitCode -ne 0) { | |
| Write-Host '=== FAILURE CONTEXT ===' | |
| Select-String -Path test-output.log -Pattern 'not ok|AssertionError|ERR_ASSERTION|error:|failureType|expected:|actual:' -Context 4,12 | |
| exit $exitCode | |
| } | |
| Get-Content test-output.log -Tail 30 |