Bump serialize-javascript from 7.0.4 to 7.0.5 (#193) #500
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: Test on push | |
| on: [push] | |
| jobs: | |
| test-node: | |
| name: Node ${{ matrix.node-version }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [22, 24, 26] | |
| # Skip job if commit message contains "[skip ci]" | |
| if: | | |
| !contains(github.event.head_commit.message, '[skip ci]') | |
| steps: | |
| - name: Check out commit | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| submodules: true | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: npm | |
| - run: npm ci --workspaces | |
| env: | |
| PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 | |
| - run: npm run test:types | |
| - run: npm run test:unit | |
| - run: npm run test:wpt:node | |
| - run: npm run test:bundlers | |
| test-browser: | |
| name: ${{ matrix.browser }} | |
| runs-on: ubuntu-latest | |
| container: | |
| image: mcr.microsoft.com/playwright:v1.60.0-noble | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| browser: [chromium, firefox] | |
| node-version: [ 24 ] | |
| if: | | |
| !contains(github.event.head_commit.message, '[skip ci]') | |
| steps: | |
| - name: Check out commit | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| submodules: true | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: npm | |
| - run: npm ci | |
| - run: npm run test:wpt:${{ matrix.browser }} | |
| env: | |
| HOME: /root | |
| benchmark: | |
| name: Benchmark on Node ${{ matrix.node-version }} | |
| runs-on: ubuntu-latest | |
| if: | | |
| !contains(github.event.head_commit.message, '[skip ci]') | |
| steps: | |
| - name: Check out commit | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| with: | |
| submodules: true | |
| - name: Use Node.js 26 | |
| uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6 | |
| with: | |
| node-version: 26 | |
| cache: npm | |
| - run: npm ci --workspaces | |
| env: | |
| PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 | |
| - name: Update benchmark baseline to latest polyfill | |
| run: npm install --workspace test/benchmark-test -D web-streams-polyfill-baseline@npm:web-streams-polyfill@latest | |
| - name: 'Benchmark: queue size' | |
| # language=bash | |
| run: | | |
| echo "## Queue size" >> $GITHUB_STEP_SUMMARY | |
| echo '```' >> $GITHUB_STEP_SUMMARY | |
| npm run benchmark:queue-size --workspace=test/benchmark-test | tee --append $GITHUB_STEP_SUMMARY | |
| echo '```' >> $GITHUB_STEP_SUMMARY | |
| env: | |
| BENCH_TTEST: true | |
| BENCH_REPORTER: text | |
| - name: 'Benchmark: buffered reads' | |
| # language=bash | |
| run: | | |
| echo "## Buffered reads" >> $GITHUB_STEP_SUMMARY | |
| echo '```' >> $GITHUB_STEP_SUMMARY | |
| npm run benchmark:read-buffered --workspace=test/benchmark-test | tee --append $GITHUB_STEP_SUMMARY | |
| echo '```' >> $GITHUB_STEP_SUMMARY | |
| env: | |
| BENCH_TTEST: true | |
| BENCH_REPORTER: text |