name: Tester on: [push, pull_request] jobs: tester: runs-on: ${{ matrix.os }} strategy: matrix: os: [windows-latest] node-version: ["18"] fail-fast: false steps: - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: Cache NPM dependencies uses: actions/cache@v4 with: path: node_modules key: ${{ runner.os }}-npm-cache restore-keys: ${{ runner.os }}-npm-cache - name: Install Dependencies run: npm install - name: Determine zstd binary version shell: bash run: | if [ "$RUNNER_OS" = "Windows" ]; then echo "PLATFORM=win32-x64-msvc" >> "$GITHUB_ENV" fi - name: Install zstd binary run: npm install "@mongodb-js/zstd-$PLATFORM" - name: Test run: npm run test env: CI: true coverage: runs-on: ${{ matrix.os }} strategy: matrix: os: [ubuntu-latest] node-version: ["20.x"] steps: - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: Install Bun uses: oven-sh/setup-bun@v1 - name: Cache NPM dependencies uses: actions/cache@v4 with: path: node_modules key: ${{ runner.os }}-npm-cache restore-keys: ${{ runner.os }}-npm-cache - name: Install Dependencies run: bun install - name: Coverage run: npm run test env: CI: true - name: Upload coverage report to Codecov uses: codecov/codecov-action@v4 with: fail_ci_if_error: true env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}