Skip to content

Update screenshots

Update screenshots #95

name: Update screenshots
on:
workflow_dispatch:
jobs:
update:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [20.x]
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npx playwright install chromium firefox --with-deps
- run: npx nx run-many --target=build
- run: npx nx run elements:test:integration:update
- name: Commit
run: |
git config --global user.name 'Stryker Mutator NPA'
git config --global user.email 'stryker-mutator@users.noreply.github.com'
git pull
git add .
git commit -m "test(screenshots): update screenshots for ${{ runner.os }}"
git push