maintenance #358
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
# https://github.com/rhysd/github-action-benchmark/blob/master/.github/workflows/benchmarkjs.yml | |
name: Benchmark | |
on: ["pull_request"] | |
jobs: | |
benchmark: | |
name: Run JavaScript benchmark | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
node: [18, 20, 22] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- run: corepack enable | |
- name: yarn install | |
run: yarn --immutable | |
shell: bash | |
- name: build | |
run: yarn build | |
shell: bash | |
- name: Run benchmark | |
run: node --max-old-space-size=6144 benchmarks/main-register-ts-node.js | tee benchmarks/output.txt | |
- name: Store benchmark result | |
uses: rhysd/github-action-benchmark@v1 | |
with: | |
name: benchmarkjs, node ${{ matrix.node }} | |
tool: "benchmarkjs" | |
output-file-path: benchmarks/output.txt | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
auto-push: true | |
# Show alert with commit comment on detecting possible performance regression | |
alert-threshold: "110%" | |
comment-always: ${{ matrix.node == 20 }} | |
comment-on-alert: true | |
fail-on-alert: true | |
alert-comment-cc-users: "@bnaya" |