Skip to content

Commit 6c32ed7

Browse files
ci: capture full Windows Phase 2 test output
1 parent 5915b3a commit 6c32ed7

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,26 @@ jobs:
3535
working-directory: global-template/docgen
3636
run: npm run check
3737
- name: Unit and integration tests
38+
if: runner.os != 'Windows'
3839
working-directory: global-template/docgen
3940
run: npm test
41+
- name: Unit and integration tests with diagnostics
42+
if: runner.os == 'Windows'
43+
shell: pwsh
44+
working-directory: global-template/docgen
45+
run: |
46+
$output = & npm test 2>&1
47+
$code = $LASTEXITCODE
48+
$output | Tee-Object -FilePath windows-test-output.txt
49+
exit $code
50+
- name: Upload Windows test diagnostics
51+
if: always() && runner.os == 'Windows'
52+
uses: actions/upload-artifact@v4
53+
with:
54+
name: windows-test-output
55+
if-no-files-found: error
56+
retention-days: 1
57+
path: global-template/docgen/windows-test-output.txt
4058
- name: Installer dry run
4159
run: node install.mjs --dry-run --no-link-cli
4260
- name: Upload exact CI source

0 commit comments

Comments
 (0)