fix: Improve fastMerge, Onyx.merge and combine merge functions in OnyxUtils
#4
Workflow file for this run
This file contains hidden or 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: Reassure Performance Tests | |
| on: | |
| pull_request: | |
| types: [opened, synchronize] | |
| branches-ignore: [staging, production] | |
| paths-ignore: [tests/**, '**.md', '**.sh'] | |
| jobs: | |
| perf-tests: | |
| if: ${{ github.actor != 'OSBotify' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| # v4 | |
| uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Node | |
| # v4 | |
| uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e | |
| with: | |
| node-version-file: '.nvmrc' | |
| - name: Set dummy git credentials | |
| run: | | |
| git config --global user.email "test@test.com" | |
| git config --global user.name "Test" | |
| - name: Run performance testing script | |
| shell: bash | |
| run: | | |
| set -e | |
| BASELINE_BRANCH=${BASELINE_BRANCH:="main"} | |
| git fetch origin "$BASELINE_BRANCH" --no-tags --depth=1 | |
| git switch "$BASELINE_BRANCH" | |
| npm install --force | |
| npm install reassure | |
| npx reassure --baseline | |
| git switch --force --detach - | |
| npm install --force | |
| npm install reassure | |
| npx reassure --branch | |
| - name: Validate output.json | |
| id: validateReassureOutput | |
| uses: ./.github/actions/validateReassureOutput | |
| with: | |
| DURATION_DEVIATION_PERCENTAGE: 20 |