chore: use testcontext for test/utils tests #18555
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: Benchmarks | |
on: | |
push: | |
branches: | |
- main | |
- current | |
- next | |
- 'v*' | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
benchmark_current: | |
name: benchmark current | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
with: | |
persist-credentials: false | |
ref: ${{ github.base_ref }} | |
- name: Setup Node | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
node-version: 'lts/*' | |
- name: Install Modules for undici | |
run: npm i --ignore-scripts --omit=dev | |
- name: Install Modules for Benchmarks | |
run: npm i | |
working-directory: ./benchmarks | |
- name: Run Benchmark | |
run: npm run bench | |
working-directory: ./benchmarks | |
benchmark_branch: | |
name: benchmark branch | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
with: | |
persist-credentials: false | |
- name: Setup Node | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
node-version: 'lts/*' | |
- name: Install Modules for undici | |
run: npm i --ignore-scripts --omit=dev | |
- name: Install Modules for Benchmarks | |
run: npm i | |
working-directory: ./benchmarks | |
- name: Run Benchmark | |
run: npm run bench | |
working-directory: ./benchmarks | |
benchmark_post_current: | |
name: benchmark (sending data) current | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
with: | |
persist-credentials: false | |
ref: ${{ github.base_ref }} | |
- name: Setup Node | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
node-version: 'lts/*' | |
- name: Install Modules for undici | |
run: npm i --ignore-scripts --omit=dev | |
- name: Install Modules for Benchmarks | |
run: npm i | |
working-directory: ./benchmarks | |
- name: Run Benchmark | |
run: npm run bench-post | |
working-directory: ./benchmarks | |
benchmark_post_branch: | |
name: benchmark (sending data) branch | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
with: | |
persist-credentials: false | |
- name: Setup Node | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
node-version: 'lts/*' | |
- name: Install Modules for undici | |
run: npm i --ignore-scripts --omit=dev | |
- name: Install Modules for Benchmarks | |
run: npm i | |
working-directory: ./benchmarks | |
- name: Run Benchmark | |
run: npm run bench-post | |
working-directory: ./benchmarks | |
benchmark_current_h2: | |
name: benchmark current h2 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
with: | |
persist-credentials: false | |
ref: ${{ github.base_ref }} | |
- name: Setup Node | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
node-version: 'lts/*' | |
- name: Install Modules for undici | |
run: npm i --ignore-scripts --omit=dev | |
- name: Install Modules for Benchmarks | |
run: npm i | |
working-directory: ./benchmarks | |
- name: Run Benchmark | |
run: npm run bench:h2 | |
working-directory: ./benchmarks | |
benchmark_branch_h2: | |
name: benchmark branch h2 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
with: | |
persist-credentials: false | |
- name: Setup Node | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
node-version: 'lts/*' | |
- name: Install Modules for undici | |
run: npm i --ignore-scripts --omit=dev | |
- name: Install Modules for Benchmarks | |
run: npm i | |
working-directory: ./benchmarks | |
- name: Run Benchmark | |
run: npm run bench:h2 | |
working-directory: ./benchmarks |