|
19 | 19 | require: write |
20 | 20 | username: ${{ github.triggering_actor }} |
21 | 21 | error-if-missing: true |
| 22 | + # Skip this check for bot users |
| 23 | + if: ${{ !endsWith(github.triggering_actor, '[bot]') }} |
22 | 24 |
|
23 | 25 | unit-tests: |
| 26 | + # Run if access-check is successful or skipped (for bot users) |
24 | 27 | needs: access-check |
| 28 | + if: ${{ always() && (needs.access-check.result == 'success' || needs.access-check.result == 'skipped') }} |
25 | 29 | runs-on: ubuntu-latest-8 |
26 | 30 | steps: |
27 | 31 | - uses: actions/checkout@v4 |
@@ -50,15 +54,15 @@ jobs: |
50 | 54 | codemod-tests: |
51 | 55 | needs: access-check |
52 | 56 | # TODO: re-enable when this check is a develop required check |
53 | | - if: false |
| 57 | + if: ${{ always() && (needs.access-check.result == 'success' || needs.access-check.result == 'skipped') && false }} |
54 | 58 | runs-on: ubuntu-latest-32 |
55 | 59 | strategy: |
56 | 60 | matrix: |
57 | 61 | sync_graph: [ true, false ] |
58 | 62 | size: [ small, large ] |
59 | 63 | exclude: |
60 | 64 | # Exclude large codemod tests when not needed |
61 | | - - size: ${{(contains(github.event.pull_request.labels.*.name, 'big-codemod-tests') || github.event_name == 'push' || github.event_name == 'workflow_dispatch') && 'kevin' || 'large'}} |
| 65 | + - size: ${{(contains(github.event.pull_request.labels.*.name, 'big-codemod-tests') || github.event_name == 'push' || github.event_name == 'workflow_dispatch') && 'kevin' || 'large')} |
62 | 66 | - size: large |
63 | 67 | sync_graph: true |
64 | 68 | concurrency: |
|
91 | 95 |
|
92 | 96 | parse-tests: |
93 | 97 | needs: access-check |
94 | | - if: contains(github.event.pull_request.labels.*.name, 'parse-tests') || github.event_name == 'push' || github.event_name == 'workflow_dispatch' |
| 98 | + if: ${{ always() && (needs.access-check.result == 'success' || needs.access-check.result == 'skipped') && (contains(github.event.pull_request.labels.*.name, 'parse-tests') || github.event_name == 'push' || github.event_name == 'workflow_dispatch') }} |
95 | 99 | runs-on: ubuntu-latest-32 |
96 | 100 | steps: |
97 | 101 | - uses: actions/checkout@v4 |
@@ -162,6 +166,7 @@ jobs: |
162 | 166 |
|
163 | 167 | integration-tests: |
164 | 168 | needs: access-check |
| 169 | + if: ${{ always() && (needs.access-check.result == 'success' || needs.access-check.result == 'skipped') }} |
165 | 170 | runs-on: ubuntu-latest-16 |
166 | 171 | steps: |
167 | 172 | - uses: actions/checkout@v4 |
|
0 commit comments