From 792762cca3949e659feb5f1e00bbc907487059c6 Mon Sep 17 00:00:00 2001 From: MDLeom <43627182+curbengh@users.noreply.github.com> Date: Fri, 18 Jul 2025 10:56:06 +0000 Subject: [PATCH] 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 --- .github/workflows/tester.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tester.yml b/.github/workflows/tester.yml index 1a9da12..0bc7689 100644 --- a/.github/workflows/tester.yml +++ b/.github/workflows/tester.yml @@ -22,10 +22,23 @@ jobs: path: node_modules key: ${{ 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 + shell: bash run: | npm install - npm install --save-dev jest-circus + npm install --include=optional --force @mongodb-js/zstd + npm install "@unrs/resolver-binding-$PLATFORM" - name: Test run: npm run test env: