Skip to content

Commit

Permalink
chore: compare benchmarking results without site
Browse files Browse the repository at this point in the history
  • Loading branch information
quantizor committed Jun 22, 2023
1 parent 7dc8324 commit 6ea9cb3
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/benchmark.yml
Expand Up @@ -5,12 +5,6 @@ on:
push:
branches: [main]

permissions:
# deployments permission to deploy GitHub pages website
deployments: write
# contents permission to update benchmark contents in gh-pages branch
contents: write

jobs:
benchmark:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -39,13 +33,20 @@ jobs:
yarn install --frozen-lockfile
yarn build
- name: Download previous benchmark data
uses: actions/cache@v3
with:
path: ./benchmark-cache
key: ${{ runner.os }}-benchmark

- name: Run benchmark
run: yarn benchmark

- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
tool: benchmarkjs
external-data-json-path: ./benchmark-cache/benchmark-data.json
output-file-path: output.txt
# comment for PRs that's updated with current perf relative to baseline (main)
summary-always: true
Expand All @@ -55,7 +56,5 @@ jobs:
fail-on-alert: true
# if things get considerably slower, deny the PR
fail-threshold: 120%
# needed for pushing historical results to gh-pages & commenting on PRs
# needed for commenting on PRs
github-token: ${{ secrets.GITHUB_TOKEN }}
# creates a gh-pages deployment with historical benchmarking data
auto-push: true

0 comments on commit 6ea9cb3

Please sign in to comment.