chore(automerge): remove unnecessary actions:write permission #12595
Workflow file for this run
This file contains 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 | |
- pull_request | |
permissions: | |
contents: read | |
jobs: | |
benchmark_current: | |
name: benchmark current | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
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 Code | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
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 Code | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
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 Code | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
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 |