Skip to content

Commit 7412000

Browse files
committed
try to sysdiagnose
Signed-off-by: Brian DeHamer <[email protected]>
1 parent 4f6ac63 commit 7412000

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

.github/workflows/unit-tests.yml

+13-7
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
runs-on: [ubuntu-latest, macos-latest, windows-latest]
19+
runs-on: [macos-latest]
2020

2121
# Node 18 is the current default Node version in hosted runners, so users may still use the toolkit with it when running tests (see https://github.com/actions/toolkit/issues/1841)
2222
# Node 20 is the currently support Node version for actions - https://docs.github.com/actions/sharing-automations/creating-actions/metadata-syntax-for-github-actions#runsusing-for-javascript-actions
23-
node-version: [18.x, 20.x]
23+
node-version: [20.x]
2424
fail-fast: false
2525

2626
runs-on: ${{ matrix.runs-on }}
@@ -44,12 +44,18 @@ jobs:
4444
run: npm run build
4545

4646
- name: npm test
47-
run: npm test -- --runInBand --forceExit
4847
env:
4948
GITHUB_TOKEN: ${{ github.token }}
49+
run: |
50+
npx jest --testPathPattern packages/exec/__tests__/exec.test.ts -t "Handles child process holding streams open"
5051
51-
- name: Lint
52-
run: npm run lint
52+
- name: sysdiagnose
53+
if: ${{ failure() }}
54+
run: |
55+
sudo sysdiagnose -u -f ${RUNNER_TEMP} -A sysdiagnose.tar.gz
5356
54-
- name: Format
55-
run: npm run format-check
57+
- uses: actions/upload-artifact@v4
58+
if: ${{ failure() }}
59+
with:
60+
name: sysdiagnose
61+
path: ${RUNNER_TEMP}/sysdiagnose.tar.gz

0 commit comments

Comments
 (0)