diff --git a/.github/workflows/icons-lib.yml b/.github/workflows/icons-lib.yml index c3f10b1dbd8..5eda053365d 100644 --- a/.github/workflows/icons-lib.yml +++ b/.github/workflows/icons-lib.yml @@ -114,17 +114,26 @@ jobs: if: steps.playwright-cache.outputs.cache-hit == 'true' - name: Re-store portal artifacts - uses: actions/download-artifact@v4.1.7 + uses: actions/download-artifact@v4 with: name: portal-build-artifact path: ./packages/dnb-design-system-portal/public - - name: Build portal - run: yarn workspace dnb-design-system-portal build:visual-test - - name: Run visual tests run: yarn workspace dnb-design-system-portal test:screenshots:ci:update + - uses: actions/upload-artifact@v4 + if: failure() + with: + name: visual-test-artifact + path: | + ./packages/dnb-eufemia/src/**/*.snap-diff.png + ./packages/dnb-eufemia/jest-visual-diff-report/* + + - name: Run visual tests info + if: failure() + run: echo '\n\nšŸ‘‰ Download the diff files as a ZIP file. \nIt is called "visual-test-artifact" and you find it in the test "Summary" under "Artifacts".\n\n\n' + - name: Commit updated snapshots run: yarn workspace @dnb/eufemia postbuild:commit