-
Notifications
You must be signed in to change notification settings - Fork 474
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add upgrade artifact actions (#6683)
- Loading branch information
Showing
2 changed files
with
10 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: ⚙️ Component testing | ||
name: ⚙️ Cypress component testing | ||
on: | ||
pull_request: | ||
push: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: ⚙️ E2E tests | ||
name: ⚙️ Playwright E2E testing | ||
on: | ||
pull_request: | ||
|
||
|
@@ -85,10 +85,10 @@ jobs: | |
run: tree ${{ env.PLAYWRIGHT_SNAPSHOTS_PATH }} | ||
|
||
- name: Upload artifacts / ${{ env.PLAYWRIGHT_SNAPSHOTS_ARTIFACTS_KEY }} | ||
uses: actions/upload-artifact@v3.1.3 | ||
uses: actions/upload-artifact@v4.3.0 | ||
with: | ||
path: ./projects/demo-playwright/tests-results/**/*.diff.png | ||
name: ${{ env.PLAYWRIGHT_SNAPSHOTS_ARTIFACTS_KEY }} | ||
name: '${{ env.PLAYWRIGHT_SNAPSHOTS_ARTIFACTS_KEY }}_${{ matrix.shardIndex }}' | ||
if-no-files-found: ignore | ||
retention-days: 1 | ||
|
||
|
@@ -101,27 +101,22 @@ jobs: | |
- uses: taiga-family/ci/actions/setup/[email protected] | ||
- uses: taiga-family/ci/actions/setup/[email protected] | ||
|
||
- name: Download artifacts / ${{ env.CYPRESS_SNAPSHOTS_ARTIFACTS_KEY }} | ||
continue-on-error: true | ||
uses: actions/[email protected] | ||
with: | ||
name: ${{ env.CYPRESS_SNAPSHOTS_ARTIFACTS_KEY }} | ||
path: ./total/cypress | ||
|
||
- name: Download artifacts / ${{ env.PLAYWRIGHT_SNAPSHOTS_ARTIFACTS_KEY }} | ||
continue-on-error: true | ||
uses: actions/download-artifact@v3.0.2 | ||
uses: actions/download-artifact@v4.1.1 | ||
with: | ||
name: ${{ env.PLAYWRIGHT_SNAPSHOTS_ARTIFACTS_KEY }} | ||
path: ./total/playwright | ||
pattern: ${{ env.PLAYWRIGHT_SNAPSHOTS_ARTIFACTS_KEY }}_* | ||
merge-multiple: true | ||
- run: ls -R ./total/playwright || echo "not found" | ||
|
||
- name: Check if diff-output exists | ||
id: diff-checker | ||
id: diff_checker | ||
run: | | ||
echo "diff_exist=$(find ./total -regex '.*diff\.png$' | wc -l | sed -e 's/^[[:space:]]*//')" >> $GITHUB_OUTPUT | ||
- name: Fall with an error if diff-output exists | ||
if: ${{ steps.diff-checker.outputs.diff_exist != '0' }} | ||
if: ${{ steps.diff_checker.outputs.diff_exist != '0' }} | ||
run: | | ||
find ./total -regex '.*diff\.png$' -exec echo "{}" \; | ||
exit 1 | ||
|