chore: Add compare-timings script

Avoid creating unnecessary PRs when there is no significant timings change.
This commit is contained in:
Sidharth Vinod
2025-04-09 12:08:57 +05:30
parent cd8d74bb96
commit 7a5f999f42
2 changed files with 96 additions and 0 deletions

View File

@@ -30,6 +30,10 @@ jobs:
uses: cypress-io/github-action@18a6541367f4580a515371905f499a27a44e8dbe # v6.7.12
with:
runTests: false
- name: Copy previous timings
run: cp cypress/timings.json cypress/timings-old.json
- name: Cypress run
uses: cypress-io/github-action@18a6541367f4580a515371905f499a27a44e8dbe # v6.7.12
id: cypress
@@ -45,6 +49,10 @@ jobs:
SPLIT: 1
SPLIT_INDEX: 0
SPLIT_FILE: 'cypress/timings.json'
- name: Compare timings
run: pnpm tsx scripts/compare-timings.ts
- name: Commit and create pull request
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e
with: