Skip to content

Commit c992cfa

Browse files
committed
test: fix shell for windows tests
1 parent c509c64 commit c992cfa

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,20 @@ jobs:
3535
node-version: ${{ matrix.node }}
3636

3737
- name: Install dependencies
38+
shell: bash
3839
run: npm ci
3940

41+
- name: Build
42+
shell: bash
43+
run: npm run build && ls -lsah build
44+
4045
- name: Disable AppArmor
4146
if: ${{ matrix.os == 'ubuntu-latest' }}
47+
shell: bash
4248
run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
4349

4450
- name: Run tests
51+
shell: bash
4552
run: npm run test
4653

4754
# Gating job for branch protection.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
"docs:generate": "node --experimental-strip-types scripts/generate-docs.ts",
1717
"start": "npm run build && node build/src/index.js",
1818
"start-debug": "DEBUG=mcp:* DEBUG_COLORS=false npm run build && node build/src/index.js",
19-
"test": "npm run build && node --require ./build/tests/setup.js --test-reporter spec --test-force-exit --test 'build/tests/**/*.test.js'",
20-
"test:only": "npm run build && node --require ./build/tests/setup.js --test-reporter spec --test-force-exit --test --test-only 'build/tests/**/*.test.js'",
21-
"test:only:no-build": "node --require ./build/tests/setup.js --test-reporter spec --test-force-exit --test --test-only 'build/tests/**/*.test.js'",
22-
"test:update-snapshots": "npm run build && node --require ./build/tests/setup.js --test-force-exit --test --test-update-snapshots 'build/tests/**/*.test.js'",
19+
"test": "npm run build && node --require ./build/tests/setup.js --test-reporter spec --test-force-exit --test \"build/tests/**/*.test.js\"",
20+
"test:only": "npm run build && node --require ./build/tests/setup.js --test-reporter spec --test-force-exit --test --test-only \"build/tests/**/*.test.js\"",
21+
"test:only:no-build": "node --require ./build/tests/setup.js --test-reporter spec --test-force-exit --test --test-only \"build/tests/**/*.test.js\"",
22+
"test:update-snapshots": "npm run build && node --require ./build/tests/setup.js --test-force-exit --test --test-update-snapshots \"build/tests/**/*.test.js\"",
2323
"prepare": "node --experimental-strip-types scripts/prepare.ts"
2424
},
2525
"files": [

0 commit comments

Comments
 (0)