Skip to content

Run snapshot tests #132

Run snapshot tests

Run snapshot tests #132

Workflow file for this run

###
#
# Run snapshot tests with percy
#
# This workflow only runs when triggered manually
#
###
name: Run snapshot tests
on:
workflow_dispatch:
push:
branches:
- 'changeset-release/main'
jobs:
snapshots:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
# Use cache is set to false because the cypress binary could not be cached correctly
- name: Setup
uses: swisspost/design-system/.github/actions/setup-pnpm@main
with:
use_cache: false
- name: Bootstrap
run: pnpm bootstrap
# Takes full snapshots on the main and partial snapshots (using the filter) on every other branch
- name: Take snapshots
env:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
run: |
pnpm snapshots