Skip to content

fix(documentation): storybook-manager-events #3360

fix(documentation): storybook-manager-events

fix(documentation): storybook-manager-events #3360

Workflow file for this run

name: End to end tests
on:
pull_request:
paths:
- 'packages/documentation/**'
- 'packages/styles/**'
- 'packages/components/**'
- 'packages/internet-header/**'
- 'packages/icons/**'
workflow_dispatch:
jobs:
e2e:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup
uses: swisspost/design-system/.github/actions/setup-pnpm@main
with:
use_cache: false
- name: Cache cypress
uses: actions/cache@v4
with:
path: /home/runner/.cache/Cypress
key: ${{ runner.os }}-cypress-${{ hashFiles('./pnpm-lock.yaml') }}
restore-keys: ${{ runner.os }}-cypress-
- name: Install & build dependencies
run: pnpm bootstrap
- name: Prepare Cypress – Spawn Xvfb server
run: Xvfb :99 &
- name: Prepare Cypress – Share Xvfb server as environment variable
run: export DISPLAY=:99
- name: Cypress info
run: pnpm --filter design-system-documentation exec cypress info
- name: Run tests
run: pnpm e2e:ci
- name: Upload screenshots
uses: actions/upload-artifact@v4.3.1
if: failure()
with:
name: cypress-snapshots
path: packages/**/cypress/screenshots
retention-days: 14