Skip to content

Commit

Permalink
Build Portal before running "Run visual tests"
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker committed Jan 30, 2025
1 parent c7be72e commit 9a2617a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/icons-lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,29 @@ jobs:
- name: Install dependencies
run: yarn install --immutable

- name: Use Playwright cache
uses: actions/cache@v4
id: playwright-cache
with:
path: |
~/Library/Caches/ms-playwright
~/.cache/ms-playwright
%USERPROFILE%\AppData\Local\ms-playwright
key: ${{ secrets.CACHE_VERSION }}-${{ runner.os }}-playwright-${{ hashFiles('**/yarn.lock') }}
- run: yarn workspace @dnb/eufemia playwright install --with-deps firefox
if: steps.playwright-cache.outputs.cache-hit != 'true'
- run: yarn workspace @dnb/eufemia playwright install-deps firefox
if: steps.playwright-cache.outputs.cache-hit == 'true'

- name: Re-store portal artifacts
uses: actions/download-artifact@v4.1.7
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

Expand Down

0 comments on commit 9a2617a

Please sign in to comment.