Bump qs from 6.9.6 to 6.15.3 #4
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| unit: | |
| name: Unit tests (Node ${{ matrix.node-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node-version: [20, 22, 24] | |
| steps: | |
| - name: Check out repo | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: npm | |
| # Skip the postinstall Camoufox download: unit tests don't need a browser. | |
| - name: Install dependencies | |
| run: npm ci --ignore-scripts | |
| - name: Run unit tests | |
| run: npm test | |
| integration: | |
| name: Integration tests (real Camoufox) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repo | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci --ignore-scripts | |
| # Camoufox is a Firefox build; install the matching system libraries for | |
| # the runner OS via Playwright's dependency installer. | |
| - name: Install Firefox system dependencies | |
| run: npx --yes playwright@latest install-deps firefox | |
| - name: Cache Camoufox browser | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/camoufox | |
| key: camoufox-${{ runner.os }}-${{ hashFiles('package-lock.json') }} | |
| restore-keys: | | |
| camoufox-${{ runner.os }}- | |
| - name: Download Camoufox browser | |
| run: npx camoufox-js fetch | |
| - name: Run integration tests | |
| run: npm run test:integration |