|
52 | 52 | # This option both controls the `v8-compile-cache-lib` and `v8-compile-cache` packages. |
53 | 53 | DISABLE_V8_COMPILE_CACHE: '1' |
54 | 54 |
|
55 | | -# All jobs share one Namespace cache volume through `overrides.cache-tag`. Pull request jobs get their own volume |
56 | | -# (`-pr`), so they cannot change the node_modules that develop and release builds install from. |
| 55 | +# Jobs that install the monorepo dependencies share one Namespace cache volume through `overrides.cache-tag`, E2E jobs |
| 56 | +# share another one (`-e2e`). Jobs that do not use a cache volume have no cache tag. Pull request jobs get their own |
| 57 | +# volumes (`-pr`), so they cannot change the node_modules that develop and release builds install from. |
57 | 58 | jobs: |
58 | 59 | job_get_metadata: |
59 | 60 | uses: ./.github/workflows/ci-metadata.yml |
@@ -268,9 +269,7 @@ jobs: |
268 | 269 | job_check_branches: |
269 | 270 | name: Check PR branches |
270 | 271 | needs: job_get_metadata |
271 | | - runs-on: |
272 | | - namespace-profile-sentry-javascript-small;overrides.cache-tag=sentry-javascript${{ github.event_name == |
273 | | - 'pull_request' && '-pr' || '' }} |
| 272 | + runs-on: namespace-profile-sentry-javascript-small |
274 | 273 | if: github.event_name == 'pull_request' |
275 | 274 | permissions: |
276 | 275 | pull-requests: write |
@@ -354,9 +353,7 @@ jobs: |
354 | 353 | name: Check lockfile |
355 | 354 | needs: [job_get_metadata] |
356 | 355 | timeout-minutes: 10 |
357 | | - runs-on: |
358 | | - namespace-profile-sentry-javascript;overrides.cache-tag=sentry-javascript${{ github.event_name == 'pull_request' |
359 | | - && '-pr' || '' }} |
| 356 | + runs-on: namespace-profile-sentry-javascript |
360 | 357 | if: | |
361 | 358 | needs.job_get_metadata.outputs.changed_deps == 'true' || |
362 | 359 | needs.job_get_metadata.outputs.is_base_branch == 'true' || |
@@ -1054,8 +1051,8 @@ jobs: |
1054 | 1051 | always() && needs.job_build_tarballs.result == 'success' && needs.job_build.outputs.e2e-matrix !='{"include":[]}' |
1055 | 1052 | needs: [job_get_metadata, job_build, job_build_layer, job_build_tarballs] |
1056 | 1053 | runs-on: |
1057 | | - namespace-profile-sentry-javascript;overrides.cache-tag=sentry-javascript${{ github.event_name == 'pull_request' |
1058 | | - && '-pr' || '' }} |
| 1054 | + namespace-profile-sentry-javascript;overrides.cache-tag=sentry-javascript-e2e${{ github.event_name == |
| 1055 | + 'pull_request' && '-pr' || '' }} |
1059 | 1056 | timeout-minutes: 15 |
1060 | 1057 | env: |
1061 | 1058 | # We just use a dummy DSN here, only send to the tunnel anyhow |
@@ -1100,13 +1097,11 @@ jobs: |
1100 | 1097 | uses: denoland/setup-deno@v2.0.5 |
1101 | 1098 | with: |
1102 | 1099 | deno-version: ${{ matrix.deno-version || 'v2.8.3' }} |
1103 | | - - name: Install pnpm |
1104 | | - uses: ./.github/actions/install-pnpm |
1105 | 1100 | # Keeps the pnpm store on the cache volume for the `pnpm install` of the test application |
1106 | 1101 | - name: Mount pnpm store |
1107 | | - uses: namespacelabs/nscloud-cache-action@1124a6f3ce44e5cf84cc22111530961f4d2a15f9 # v1.7.0 |
1108 | | - with: |
1109 | | - cache: pnpm |
| 1102 | + uses: ./.github/actions/mount-pnpm-store |
| 1103 | + - name: Install pnpm |
| 1104 | + uses: ./.github/actions/install-pnpm |
1110 | 1105 |
|
1111 | 1106 | - name: Restore tarball artifacts |
1112 | 1107 | uses: actions/download-artifact@v8 |
@@ -1202,8 +1197,8 @@ jobs: |
1202 | 1197 | github.event.pull_request.head.repo.full_name == github.repository) && github.actor != 'dependabot[bot]' |
1203 | 1198 | needs: [job_get_metadata, job_build, job_build_tarballs] |
1204 | 1199 | runs-on: |
1205 | | - namespace-profile-sentry-javascript;overrides.cache-tag=sentry-javascript${{ github.event_name == 'pull_request' |
1206 | | - && '-pr' || '' }} |
| 1200 | + namespace-profile-sentry-javascript;overrides.cache-tag=sentry-javascript-e2e${{ github.event_name == |
| 1201 | + 'pull_request' && '-pr' || '' }} |
1207 | 1202 | timeout-minutes: 15 |
1208 | 1203 | env: |
1209 | 1204 | E2E_TEST_AUTH_TOKEN: ${{ secrets.E2E_TEST_AUTH_TOKEN }} |
@@ -1251,13 +1246,11 @@ jobs: |
1251 | 1246 | uses: denoland/setup-deno@v2.0.5 |
1252 | 1247 | with: |
1253 | 1248 | deno-version: ${{ matrix.deno-version || 'v2.8.3' }} |
1254 | | - - name: Install pnpm |
1255 | | - uses: ./.github/actions/install-pnpm |
1256 | 1249 | # Keeps the pnpm store on the cache volume for the `pnpm install` of the test application |
1257 | 1250 | - name: Mount pnpm store |
1258 | | - uses: namespacelabs/nscloud-cache-action@1124a6f3ce44e5cf84cc22111530961f4d2a15f9 # v1.7.0 |
1259 | | - with: |
1260 | | - cache: pnpm |
| 1251 | + uses: ./.github/actions/mount-pnpm-store |
| 1252 | + - name: Install pnpm |
| 1253 | + uses: ./.github/actions/install-pnpm |
1261 | 1254 |
|
1262 | 1255 | - name: Restore tarball artifacts |
1263 | 1256 | uses: actions/download-artifact@v8 |
@@ -1343,9 +1336,7 @@ jobs: |
1343 | 1336 | ] |
1344 | 1337 | # Always run this, even if a dependent job failed |
1345 | 1338 | if: always() |
1346 | | - runs-on: |
1347 | | - namespace-profile-sentry-javascript-small;overrides.cache-tag=sentry-javascript${{ github.event_name == |
1348 | | - 'pull_request' && '-pr' || '' }} |
| 1339 | + runs-on: namespace-profile-sentry-javascript-small |
1349 | 1340 | permissions: {} |
1350 | 1341 | steps: |
1351 | 1342 | - name: Check for failures |
|
0 commit comments