test: workaround for jest-circus module not found

https://github.com/jestjs/jest/issues/15724

also install zstd with --force to ensure the postinstall script
that builds the binary actually runs on linux
This commit is contained in:
MDLeom 2025-07-18 10:56:06 +00:00
parent f5b5c11cbf
commit 792762cca3
No known key found for this signature in database
GPG Key ID: 06C236E63CBC68AA
1 changed files with 14 additions and 1 deletions

View File

@ -22,10 +22,23 @@ jobs:
path: node_modules path: node_modules
key: ${{ runner.os }}-npm-cache key: ${{ runner.os }}-npm-cache
restore-keys: ${{ runner.os }}-npm-cache restore-keys: ${{ runner.os }}-npm-cache
- name: Determine unrs-resolver binary version
shell: bash
run: |
case "$RUNNER_OS" in
"Linux")
echo "PLATFORM=linux-x64-gnu" >> "$GITHUB_ENV" ;;
"Windows")
echo "PLATFORM=win32-x64-msvc" >> "$GITHUB_ENV" ;;
"macOS")
echo "PLATFORM=darwin-arm64" >> "$GITHUB_ENV" ;;
esac
- name: Install Dependencies - name: Install Dependencies
shell: bash
run: | run: |
npm install npm install
npm install --save-dev jest-circus npm install --include=optional --force @mongodb-js/zstd
npm install "@unrs/resolver-binding-$PLATFORM"
- name: Test - name: Test
run: npm run test run: npm run test
env: env: