chore(deps): update dependency eslint to v9 #637
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: Benchmark | |
on: | |
push: | |
branches-ignore: | |
- master | |
jobs: | |
benchmark: | |
name: Run JavaScript benchmark | |
runs-on: ubuntu-latest | |
steps: | |
- uses: mskelton/setup-yarn@v3 | |
with: | |
node-version: lts/* | |
flags: --immutable-cache | |
cache: yarn | |
- name: Run benchmark | |
run: yarn benchmark | |
- name: Download previous benchmark data | |
uses: actions/cache@v4 | |
with: | |
path: ./cache | |
key: ${{ runner.os }}-benchmark | |
- name: Copy master benchmark data | |
run: | | |
if test -f ./cache/benchmark-data.json; then | |
cp ./cache/benchmark-data.json ./cache/benchmark-master-data.json | |
fi | |
- name: Compare with master | |
uses: benchmark-action/github-action-benchmark@v1 | |
with: | |
name: Compare with master | |
tool: "benchmarkjs" | |
output-file-path: benchmark/output.txt | |
external-data-json-path: ./cache/benchmark-master-data.json | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
auto-push: false | |
# Show alert with commit comment on detecting possible performance regression | |
alert-threshold: "130%" | |
comment-on-alert: true | |
comment-always: true | |
fail-on-alert: true |