Skip to content

Commit

Permalink
Upgrade actions/upload-artifact to v4 (#5325) (#5349)
Browse files Browse the repository at this point in the history
* Upgrade actions/upload-artifact to v4 (#5325)

* Remove not used action combine-e2e-results

* Use v4 upload and download artifacts

* Use shard

* Extract shard index

* Add shell

* Add changeset

* Generate report name

* Generate report name in one step

* Generate report name in one step v2

Cherry picked from merx-1360-updte-upload-action-artifact

* Fix report name

---------

Co-authored-by: Paweł Chyła <[email protected]>
  • Loading branch information
karola312 and poulch authored Jan 16, 2025
1 parent d4f9d5c commit 53cb75e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 57 deletions.
5 changes: 5 additions & 0 deletions .changeset/dirty-toes-tan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": patch
---

Now CI workflows use updated action to upload and download artifacts
51 changes: 0 additions & 51 deletions .github/actions/combineReportsFromE2E/action.yml

This file was deleted.

7 changes: 4 additions & 3 deletions .github/actions/merge-pw-reports/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,18 @@ runs:
run: npm ci

- name: Download blob reports from GitHub Actions Artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: all-blob-reports
path: all-blob-reports
pattern: all-blob-reports-*
merge-multiple: true

- name: Merge into HTML Report
shell: bash
run: npx playwright merge-reports --reporter html ./all-blob-reports

- name: Upload HTML report
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: html-report--attempt-${{ github.run_attempt }}
path: playwright-report
Expand Down
8 changes: 5 additions & 3 deletions .github/actions/run-pw-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,14 @@ runs:
URL_TO_RUN: ${{ inputs.URL_TO_RUN }}
WORKERS: ${{ inputs.PW_WORKERS }}
RETRIES: ${{ inputs.PW_RETRIES }}
run: npm run qa:pw-e2e -- --shard "$SHARD_NUMBER"
run: |
echo "reportName=all-blob-reports-${SHARD_NUMBER%%/*}" >> $GITHUB_ENV
npm run qa:pw-e2e -- --shard "$SHARD_NUMBER"
- name: Upload blob report to GitHub Actions Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: all-blob-reports
name: ${{ env.reportName }}
path: blob-report
retention-days: 1

0 comments on commit 53cb75e

Please sign in to comment.