123456789101112131415161718192021222324252627282930313233343536373839 |
- name: jest balancer
- on:
- workflow_dispatch:
- schedule:
- - cron: '0 0 1,15 * *'
- jobs:
- jest-balance:
- # Buckle up, this may take a while
- timeout-minutes: 60
- # Make sure this matches the runner that runs frontend tests
- runs-on: ubuntu-22.04
- steps:
- - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Checkout sentry
- - uses: getsentry/action-setup-volta@e4939d337b83760d13a9d7030a6f68c9d0ee7581 # v2.0.0
- - name: Install dependencies
- run: yarn install --frozen-lockfile
- - name: jest balancer
- env:
- GITHUB_PR_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
- GITHUB_PR_REF: ${{ github.event.pull_request.head.ref || github.ref }}
- run: JEST_TEST_BALANCER=1 yarn test-ci
- - name: Create Pull Request
- uses: peter-evans/create-pull-request@b4d51739f96fca8047ad065eccef63442d8e99f7 # v4.2.0
- with:
- token: ${{ secrets.BUMP_SENTRY_TOKEN }}
- add-paths: |
- tests/js/test-balancer/jest-balance.json
- commit-message: 'ci(jest): regenerate jest-balance.json'
- branch: 'ci/jest/rebalance-tests'
- delete-branch: true
- base: master
- title: 'ci(jest): regenerate jest-balance.json'
- body: |
- This PR was auto-generated - it updates the \`jest-balance.json\` file with new test run data from CI.
|