Skip to content

Commit

Permalink
ci: check RUNNER_OS in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
curbengh committed Jun 11, 2024
1 parent a2c810c commit ea2de32
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/tester.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: ["18", "20", "22"]
os: [windows-latest]
node-version: ["18"]
fail-fast: false
steps:
- uses: actions/checkout@v4
Expand All @@ -27,16 +27,9 @@ jobs:
- name: Determine zstd 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
echo "$RUNNER_OS"
- name: Install zstd binary
run: npm install "@mongodb-js/zstd-${PLATFORM}"
run: npm install "@mongodb-js/zstd-win32-x64-msvc"
- name: Test
run: npm run test
env:
Expand Down

0 comments on commit ea2de32

Please sign in to comment.