jest-balance.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. name: jest balancer
  2. on:
  3. workflow_dispatch:
  4. schedule:
  5. - cron: '0 0 1,15 * *'
  6. jobs:
  7. jest-balance:
  8. # Buckle up, this may take a while
  9. timeout-minutes: 60
  10. # Make sure this matches the runner that runs frontend tests
  11. runs-on: ubuntu-20.04
  12. steps:
  13. - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
  14. name: Checkout sentry
  15. - uses: getsentry/action-setup-volta@54775a59c41065f54ecc76d1dd5f2cdc7a1550cb # v1.1.0
  16. - name: Install dependencies
  17. run: yarn install --frozen-lockfile
  18. - name: Build CSS
  19. run: NODE_ENV=production yarn build-css
  20. - name: jest balancer
  21. env:
  22. GITHUB_PR_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
  23. GITHUB_PR_REF: ${{ github.event.pull_request.head.ref || github.ref }}
  24. run: JEST_TEST_BALANCER=1 yarn test-ci
  25. - name: Create Pull Request
  26. uses: peter-evans/create-pull-request@b4d51739f96fca8047ad065eccef63442d8e99f7 # v4.2.0
  27. with:
  28. token: ${{ secrets.BUMP_SENTRY_TOKEN }}
  29. add-paths: |
  30. tests/js/test-balancer/jest-balance.json
  31. commit-message: 'ci(jest): regenerate jest-balance.json'
  32. branch: 'ci/jest/rebalance-tests'
  33. delete-branch: true
  34. base: master
  35. title: 'ci(jest): regenerate jest-balance.json'
  36. body: |
  37. This PR was auto-generated - it updates the \`jest-balance.json\` file with new test run data from CI.