Skip to content

Commit 14e56c7

Browse files
authored
ci: Update actions/upload-artifact to v4 (#13489)
It keeps complaining that this is deprecated, so bumping this to v4.
1 parent 2cbf64e commit 14e56c7

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ jobs:
185185
with:
186186
name: build-output
187187
path: ${{ env.CACHED_BUILD_PATHS }}
188-
retention-days: 7
188+
retention-days: 4
189189
compression-level: 6
190190
overwrite: true
191191

@@ -345,6 +345,7 @@ jobs:
345345
uses: actions/upload-artifact@v4
346346
with:
347347
name: ${{ github.sha }}
348+
retention-days: 90
348349
path: |
349350
${{ github.workspace }}/packages/browser/build/bundles/**
350351
${{ github.workspace }}/packages/replay-internal/build/bundles/**
@@ -597,11 +598,13 @@ jobs:
597598
run: yarn test:ci${{ matrix.project && format(' --project={0}', matrix.project) || '' }}${{ matrix.shard && format(' --shard={0}/{1}', matrix.shard, matrix.shards) || '' }}
598599

599600
- name: Upload Playwright Traces
600-
uses: actions/upload-artifact@v3
601-
if: always()
601+
uses: actions/upload-artifact@v4
602+
if: failure()
602603
with:
603-
name: playwright-traces
604+
name: playwright-traces-job_browser_playwright_tests-${{ matrix.bundle}}-${{matrix.project}}-${{matrix.shard || '0'}}
604605
path: dev-packages/browser-integration-tests/test-results
606+
overwrite: true
607+
retention-days: 7
605608

606609
job_browser_loader_tests:
607610
name: PW ${{ matrix.bundle }} Tests
@@ -647,11 +650,13 @@ jobs:
647650
cd dev-packages/browser-integration-tests
648651
yarn test:loader
649652
- name: Upload Playwright Traces
650-
uses: actions/upload-artifact@v3
651-
if: always()
653+
uses: actions/upload-artifact@v4
654+
if: failure()
652655
with:
653-
name: playwright-traces
656+
name: playwright-traces-job_browser_loader_tests-${{ matrix.bundle}}
654657
path: dev-packages/browser-integration-tests/test-results
658+
overwrite: true
659+
retention-days: 7
655660

656661
job_check_for_faulty_dts:
657662
name: Check for faulty .d.ts files
@@ -1261,6 +1266,7 @@ jobs:
12611266
with:
12621267
name: ${{ steps.process.outputs.artifactName }}
12631268
path: ${{ steps.process.outputs.artifactPath }}
1269+
retention-days: 7
12641270

12651271
job_compile_bindings_profiling_node:
12661272
name: Compile & Test Profiling Bindings (v${{ matrix.node }}) ${{ matrix.target_platform || matrix.os }}, ${{ matrix.node || matrix.container }}, ${{ matrix.arch || matrix.container }}, ${{ contains(matrix.container, 'alpine') && 'musl' || 'glibc' }}

0 commit comments

Comments
 (0)