-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20418 from Expensify/Rory-SkipReassureForOSBotify
[No QA] Skip reassure tests for OSBotify (cherry picked from commit cdd4259)
- Loading branch information
1 parent
3bc3638
commit 40329c3
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Reassure Performance Tests | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize] | ||
branches-ignore: [staging, production] | ||
|
||
jobs: | ||
perf-tests: | ||
if: ${{ github.actor != 'OSBotify' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 | ||
|
||
- name: Setup NodeJS | ||
uses: Expensify/App/.github/actions/composite/setupNode@main | ||
|
||
- name: Run performance testing script | ||
shell: bash | ||
run: | | ||
set -e | ||
BASELINE_BRANCH=${BASELINE_BRANCH:="main"} | ||
git fetch origin | ||
git switch "$BASELINE_BRANCH" | ||
npm install --force | ||
npx reassure --baseline | ||
git switch --detach - | ||
npm install --force | ||
npx reassure --branch | ||
- name: Read output.json | ||
id: reassure | ||
uses: juliangruber/read-file-action@v1 | ||
with: | ||
path: .reassure/output.json | ||
|
||
- name: Validate output.json | ||
id: validateReassureOutput | ||
uses: Expensify/App/.github/actions/javascript/validateReassureOutput@main | ||
with: | ||
DURATION_DEVIATION_PERCENTAGE: 20 | ||
COUNT_DEVIATION: 0 | ||
REGRESSION_OUTPUT: ${{ steps.reassure.outputs.content }} | ||
|