Skip to content

Maintenance

Maintenance #348

Workflow file for this run

# 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: [16, 18, 20]
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 == 14 }}
comment-on-alert: true
fail-on-alert: true
alert-comment-cc-users: "@bnaya"