jest-balance.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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-22.04
  12. steps:
  13. - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
  14. name: Checkout sentry
  15. - uses: getsentry/action-setup-volta@c52be2ea13cfdc084edb806e81958c13e445941e # v1.2.0
  16. - name: Install dependencies
  17. run: yarn install --frozen-lockfile
  18. - name: jest balancer
  19. env:
  20. GITHUB_PR_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
  21. GITHUB_PR_REF: ${{ github.event.pull_request.head.ref || github.ref }}
  22. run: JEST_TEST_BALANCER=1 yarn test-ci
  23. - name: Create Pull Request
  24. uses: peter-evans/create-pull-request@b4d51739f96fca8047ad065eccef63442d8e99f7 # v4.2.0
  25. with:
  26. token: ${{ secrets.BUMP_SENTRY_TOKEN }}
  27. add-paths: |
  28. tests/js/test-balancer/jest-balance.json
  29. commit-message: 'ci(jest): regenerate jest-balance.json'
  30. branch: 'ci/jest/rebalance-tests'
  31. delete-branch: true
  32. base: master
  33. title: 'ci(jest): regenerate jest-balance.json'
  34. body: |
  35. This PR was auto-generated - it updates the \`jest-balance.json\` file with new test run data from CI.