Use Github Artifacts v4 (#12152)

This commit is contained in:
Michael Telatynski 2024-01-19 08:54:49 +00:00 committed by GitHub
parent f4c090eec4
commit 1dbcdfb6b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 13 additions and 14 deletions

View file

@ -82,7 +82,7 @@ jobs:
git rev-parse HEAD > element-web/webapp/sha git rev-parse HEAD > element-web/webapp/sha
- name: Upload Artifact - name: Upload Artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: previewbuild name: previewbuild
path: element-web/webapp path: element-web/webapp

View file

@ -51,12 +51,10 @@ jobs:
# Run multiple instances in parallel to speed up the tests # Run multiple instances in parallel to speed up the tests
runner: [1, 2, 3, 4, 5, 6, 7, 8] runner: [1, 2, 3, 4, 5, 6, 7, 8]
steps: steps:
# There's a 'download artifact' action, but it hasn't been updated for the workflow_run action
# (https://github.com/actions/download-artifact/issues/60) so instead we get this mess:
- name: 📥 Download artifact - name: 📥 Download artifact
uses: dawidd6/action-download-artifact@f29d1b6a8930683e80acedfbe6baa2930cd646b4 # v2 uses: actions/download-artifact@v4
with: with:
run_id: ${{ github.event.workflow_run.id }} run-id: ${{ github.event.workflow_run.id }}
name: previewbuild name: previewbuild
path: webapp path: webapp
@ -118,9 +116,9 @@ jobs:
- name: Upload blob report to GitHub Actions Artifacts - name: Upload blob report to GitHub Actions Artifacts
if: always() if: always()
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: all-blob-reports name: all-blob-reports-${{ matrix.runner }}
path: matrix-react-sdk/blob-report path: matrix-react-sdk/blob-report
retention-days: 1 retention-days: 1
@ -147,16 +145,17 @@ jobs:
run: yarn install --frozen-lockfile run: yarn install --frozen-lockfile
- name: Download blob reports from GitHub Actions Artifacts - name: Download blob reports from GitHub Actions Artifacts
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: all-blob-reports pattern: all-blob-reports-*
path: all-blob-reports path: all-blob-reports
merge-multiple: true
- name: Merge into HTML Report - name: Merge into HTML Report
run: yarn playwright merge-reports --reporter=html,github ./all-blob-reports run: yarn playwright merge-reports --reporter=html,github ./all-blob-reports
- name: Upload HTML report - name: Upload HTML report
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: html-report--attempt-${{ github.run_attempt }} name: html-report--attempt-${{ github.run_attempt }}
path: playwright-report path: playwright-report

View file

@ -27,9 +27,9 @@ jobs:
# There's a 'download artifact' action, but it hasn't been updated for the workflow_run action # There's a 'download artifact' action, but it hasn't been updated for the workflow_run action
# (https://github.com/actions/download-artifact/issues/60) so instead we get this mess: # (https://github.com/actions/download-artifact/issues/60) so instead we get this mess:
- name: 📥 Download artifact - name: 📥 Download artifact
uses: dawidd6/action-download-artifact@f29d1b6a8930683e80acedfbe6baa2930cd646b4 # v2 uses: actions/download-artifact@v4
with: with:
run_id: ${{ github.event.workflow_run.id }} run-id: ${{ github.event.workflow_run.id }}
name: previewbuild name: previewbuild
path: webapp path: webapp

View file

@ -81,9 +81,9 @@ jobs:
- name: Upload Artifact - name: Upload Artifact
if: env.ENABLE_COVERAGE == 'true' if: env.ENABLE_COVERAGE == 'true'
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: coverage name: coverage-${{ matrix.runner }}
path: | path: |
coverage coverage
!coverage/lcov-report !coverage/lcov-report