jest-balance.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. name: jest balancer
  2. on: [workflow_dispatch]
  3. jobs:
  4. jest-balance:
  5. # Buckle up, this may take a while
  6. timeout-minutes: 60
  7. # Make sure this matches the runner that runs frontend tests
  8. runs-on: ubuntu-20.04
  9. steps:
  10. - uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e # v2
  11. name: Checkout sentry
  12. - uses: getsentry/action-setup-volta@54775a59c41065f54ecc76d1dd5f2cdc7a1550cb # v1.1.0
  13. - name: Install dependencies
  14. run: yarn install --frozen-lockfile
  15. - name: Build CSS
  16. run: NODE_ENV=production yarn build-css
  17. - name: jest balancer
  18. env:
  19. GITHUB_PR_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
  20. GITHUB_PR_REF: ${{ github.event.pull_request.head.ref || github.ref }}
  21. run: JEST_TEST_BALANCER=1 yarn test-ci
  22. - name: Create Pull Request
  23. uses: peter-evans/create-pull-request@b4d51739f96fca8047ad065eccef63442d8e99f7 # v4.2.0
  24. with:
  25. token: ${{ secrets.BUMP_SENTRY_TOKEN }}
  26. add-paths: |
  27. tests/js/test-balancer/jest-balance.json
  28. commit-message: 'ci(jest): regenerate jest-balance.json'
  29. branch: 'ci/jest/rebalance-tests'
  30. reviewers: ${{ github.triggering_actor }}
  31. team-reviewers: |
  32. getsentry/app-frontend
  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.