ci: check RUNNER_OS in windows

This commit is contained in:
MDLeom 2024-06-11 12:17:31 +00:00
parent a2c810cfb5
commit ea2de32cd1
No known key found for this signature in database
GPG Key ID: 06C236E63CBC68AA
1 changed files with 4 additions and 11 deletions

View File

@ -7,8 +7,8 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest, windows-latest, macos-latest] os: [windows-latest]
node-version: ["18", "20", "22"] node-version: ["18"]
fail-fast: false fail-fast: false
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -27,16 +27,9 @@ jobs:
- name: Determine zstd binary version - name: Determine zstd binary version
shell: bash shell: bash
run: | run: |
case "$RUNNER_OS" in echo "$RUNNER_OS"
"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 zstd binary - name: Install zstd binary
run: npm install "@mongodb-js/zstd-${PLATFORM}" run: npm install "@mongodb-js/zstd-win32-x64-msvc"
- name: Test - name: Test
run: npm run test run: npm run test
env: env: