|
24 | 24 | if: >- |
25 | 25 | ${{ github.event.action == 'synchronize' |
26 | 26 | && github.event.pull_request.head.repo.full_name != github.repository }} |
27 | | - runs-on: 'blacksmith-8vcpu-ubuntu-2204' |
| 27 | + runs-on: 'blacksmith-2vcpu-ubuntu-2204' |
28 | 28 | permissions: |
29 | 29 | # Needed for removing the "safe-to-test" label |
30 | 30 | pull-requests: write |
|
43 | 43 | ${{ github.event.action == 'labeled' |
44 | 44 | && github.event.label.name == 'safe-to-test' |
45 | 45 | && github.event.pull_request.head.repo.full_name != github.repository }} |
46 | | - runs-on: 'blacksmith-8vcpu-ubuntu-2204' |
| 46 | + runs-on: 'blacksmith-2vcpu-ubuntu-2204' |
47 | 47 | permissions: |
48 | 48 | pull-requests: write |
49 | 49 | name: Check Label Sender Permissions |
@@ -288,3 +288,28 @@ jobs: |
288 | 288 | name: playwright-traces-fork-${{ github.run_id }}-${{ github.run_attempt }}-${{ steps.sanitize.outputs.artifact-suffix }}${{ matrix.next-version && format('-next{0}', matrix.next-version) || '' }} |
289 | 289 | path: test-results |
290 | 290 | retention-days: 1 |
| 291 | + |
| 292 | + integration-tests-gate: |
| 293 | + needs: [integration-tests] |
| 294 | + if: ${{ always() && needs.integration-tests.result != 'skipped' }} |
| 295 | + runs-on: 'blacksmith-2vcpu-ubuntu-2204' |
| 296 | + permissions: |
| 297 | + statuses: write |
| 298 | + name: Fork Integration Tests Gate |
| 299 | + steps: |
| 300 | + - name: Report integration test status |
| 301 | + env: |
| 302 | + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 303 | + RESULT: ${{ needs.integration-tests.result }} |
| 304 | + SHA: ${{ github.event.pull_request.head.sha }} |
| 305 | + REPO: ${{ github.repository }} |
| 306 | + run: | |
| 307 | + if [ "$RESULT" = "success" ]; then |
| 308 | + STATE="success" |
| 309 | + else |
| 310 | + STATE="failure" |
| 311 | + fi |
| 312 | + gh api "repos/$REPO/statuses/$SHA" \ |
| 313 | + -f state="$STATE" \ |
| 314 | + -f context="integration-tests" \ |
| 315 | + -f description="Fork integration tests: $RESULT" |
0 commit comments