|
1 | 1 | name: PR checks
|
2 | 2 |
|
3 | 3 | on:
|
4 |
| - pull_request_target: |
| 4 | + pull_request: |
5 | 5 | branches:
|
6 | 6 | - main
|
7 | 7 | paths:
|
|
22 | 22 | - ".github/workflows/**"
|
23 | 23 |
|
24 | 24 | jobs:
|
25 |
| - validate-pr: |
26 |
| - runs-on: ubuntu-latest |
27 |
| - environment: tests-requiring-secrets |
28 |
| - steps: |
29 |
| - - uses: actions/checkout@v4 |
30 |
| - |
31 | 25 | install-root:
|
32 |
| - needs: validate-pr |
33 | 26 | runs-on: ubuntu-latest
|
34 | 27 | steps:
|
35 | 28 | - uses: actions/checkout@v4
|
36 |
| - with: |
37 |
| - ref: ${{ github.event.pull_request.head.sha }} |
38 |
| - # This is important - it switches from the base repo to the fork |
39 |
| - repository: ${{ github.event.pull_request.head.repo.full_name }} |
40 | 29 |
|
41 | 30 | - uses: actions/setup-node@v4
|
42 | 31 | with:
|
|
57 | 46 | runs-on: ubuntu-latest
|
58 | 47 | steps:
|
59 | 48 | - uses: actions/checkout@v4
|
60 |
| - with: |
61 |
| - ref: ${{ github.event.pull_request.head.sha }} |
62 |
| - repository: ${{ github.event.pull_request.head.repo.full_name }} |
63 | 49 |
|
64 | 50 | - uses: actions/setup-node@v4
|
65 | 51 | with:
|
|
86 | 72 | core-checks:
|
87 | 73 | needs: install-core
|
88 | 74 | runs-on: ubuntu-latest
|
89 |
| - environment: tests-requiring-secrets |
90 | 75 | steps:
|
91 | 76 | - uses: actions/checkout@v4
|
92 |
| - with: |
93 |
| - ref: ${{ github.event.pull_request.head.sha }} |
94 |
| - repository: ${{ github.event.pull_request.head.repo.full_name }} |
95 | 77 |
|
96 | 78 | - uses: actions/setup-node@v4
|
97 | 79 | with:
|
@@ -122,9 +104,6 @@ jobs:
|
122 | 104 | runs-on: ubuntu-latest
|
123 | 105 | steps:
|
124 | 106 | - uses: actions/checkout@v4
|
125 |
| - with: |
126 |
| - ref: ${{ github.event.pull_request.head.sha }} |
127 |
| - repository: ${{ github.event.pull_request.head.repo.full_name }} |
128 | 107 |
|
129 | 108 | - uses: actions/setup-node@v4
|
130 | 109 | with:
|
@@ -157,9 +136,6 @@ jobs:
|
157 | 136 | runs-on: ubuntu-latest
|
158 | 137 | steps:
|
159 | 138 | - uses: actions/checkout@v4
|
160 |
| - with: |
161 |
| - ref: ${{ github.event.pull_request.head.sha }} |
162 |
| - repository: ${{ github.event.pull_request.head.repo.full_name }} |
163 | 139 |
|
164 | 140 | - uses: actions/setup-node@v4
|
165 | 141 | with:
|
@@ -191,9 +167,6 @@ jobs:
|
191 | 167 | runs-on: ubuntu-latest
|
192 | 168 | steps:
|
193 | 169 | - uses: actions/checkout@v4
|
194 |
| - with: |
195 |
| - ref: ${{ github.event.pull_request.head.sha }} |
196 |
| - repository: ${{ github.event.pull_request.head.repo.full_name }} |
197 | 170 |
|
198 | 171 | - uses: actions/setup-node@v4
|
199 | 172 | with:
|
@@ -231,9 +204,6 @@ jobs:
|
231 | 204 | runs-on: ubuntu-latest
|
232 | 205 | steps:
|
233 | 206 | - uses: actions/checkout@v4
|
234 |
| - with: |
235 |
| - ref: ${{ github.event.pull_request.head.sha }} |
236 |
| - repository: ${{ github.event.pull_request.head.repo.full_name }} |
237 | 207 |
|
238 | 208 | - uses: actions/setup-node@v4
|
239 | 209 | with:
|
@@ -268,9 +238,6 @@ jobs:
|
268 | 238 | runs-on: ubuntu-latest
|
269 | 239 | steps:
|
270 | 240 | - uses: actions/checkout@v4
|
271 |
| - with: |
272 |
| - ref: ${{ github.event.pull_request.head.sha }} |
273 |
| - repository: ${{ github.event.pull_request.head.repo.full_name }} |
274 | 241 |
|
275 | 242 | - uses: actions/setup-node@v4
|
276 | 243 | with:
|
@@ -303,9 +270,6 @@ jobs:
|
303 | 270 | runs-on: ubuntu-latest
|
304 | 271 | steps:
|
305 | 272 | - uses: actions/checkout@v4
|
306 |
| - with: |
307 |
| - ref: ${{ github.event.pull_request.head.sha }} |
308 |
| - repository: ${{ github.event.pull_request.head.repo.full_name }} |
309 | 273 |
|
310 | 274 | - uses: actions/setup-node@v4
|
311 | 275 | with:
|
@@ -333,9 +297,6 @@ jobs:
|
333 | 297 | test_file_matrix: ${{ steps.vscode-get-test-file-matrix.outputs.test_file_matrix }}
|
334 | 298 | steps:
|
335 | 299 | - uses: actions/checkout@v4
|
336 |
| - with: |
337 |
| - ref: ${{ github.event.pull_request.head.sha }} |
338 |
| - repository: ${{ github.event.pull_request.head.repo.full_name }} |
339 | 300 |
|
340 | 301 | - name: Cache node modules
|
341 | 302 | uses: actions/cache@v3
|
@@ -363,9 +324,6 @@ jobs:
|
363 | 324 | needs: [install-vscode, install-core]
|
364 | 325 | steps:
|
365 | 326 | - uses: actions/checkout@v4
|
366 |
| - with: |
367 |
| - ref: ${{ github.event.pull_request.head.sha }} |
368 |
| - repository: ${{ github.event.pull_request.head.repo.full_name }} |
369 | 327 |
|
370 | 328 | - uses: actions/setup-node@v4
|
371 | 329 | with:
|
@@ -399,9 +357,6 @@ jobs:
|
399 | 357 | needs: [install-vscode, install-core]
|
400 | 358 | steps:
|
401 | 359 | - uses: actions/checkout@v4
|
402 |
| - with: |
403 |
| - ref: ${{ github.event.pull_request.head.sha }} |
404 |
| - repository: ${{ github.event.pull_request.head.repo.full_name }} |
405 | 360 |
|
406 | 361 | - uses: actions/setup-node@v4
|
407 | 362 | with:
|
@@ -443,17 +398,13 @@ jobs:
|
443 | 398 | ]
|
444 | 399 | runs-on: ubuntu-latest
|
445 | 400 | # Tests requiring secrets need approval from maintainers
|
446 |
| - environment: tests-requiring-secrets |
447 | 401 | strategy:
|
448 | 402 | fail-fast: false
|
449 | 403 | matrix:
|
450 | 404 | test_file: ${{ fromJson(needs.vscode-get-test-file-matrix.outputs.test_file_matrix) }}
|
451 | 405 | command: ["e2e:ci:run", "e2e:ci:run-yaml"]
|
452 | 406 | steps:
|
453 | 407 | - uses: actions/checkout@v4
|
454 |
| - with: |
455 |
| - ref: ${{ github.event.pull_request.head.sha }} |
456 |
| - repository: ${{ github.event.pull_request.head.repo.full_name }} |
457 | 408 |
|
458 | 409 | - uses: actions/setup-node@v4
|
459 | 410 | with:
|
@@ -517,9 +468,6 @@ jobs:
|
517 | 468 | runs-on: ubuntu-latest
|
518 | 469 | steps:
|
519 | 470 | - uses: actions/checkout@v4
|
520 |
| - with: |
521 |
| - ref: ${{ github.event.pull_request.head.sha }} |
522 |
| - repository: ${{ github.event.pull_request.head.repo.full_name }} |
523 | 471 |
|
524 | 472 | - uses: actions/setup-node@v4
|
525 | 473 | with:
|
@@ -552,10 +500,6 @@ jobs:
|
552 | 500 | runs-on: ubuntu-latest
|
553 | 501 | steps:
|
554 | 502 | - uses: actions/checkout@v4
|
555 |
| - with: |
556 |
| - ref: ${{ github.event.pull_request.head.sha }} |
557 |
| - repository: ${{ github.event.pull_request.head.repo.full_name }} |
558 |
| - |
559 | 503 | - uses: actions/cache@v4
|
560 | 504 | with:
|
561 | 505 | path: core/node_modules
|
|
0 commit comments