-
Notifications
You must be signed in to change notification settings - Fork 21
34 lines (34 loc) · 1.12 KB
/
update-screenshots.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Update screenshots
on:
workflow_dispatch:
jobs:
update:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- name: Generate token
id: generate-token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ vars.STRYKER_MUTATOR_APP_ID }}
private_key: ${{ secrets.STRYKER_MUTATOR_NPA_KEY }}
- uses: actions/checkout@v4
with:
token: ${{ steps.generate-token.outputs.token }}
- uses: ./.github/setup
- 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[bot]"
git config --global user.email 158062761+stryker-mutator[bot]@users.noreply.github.com
git pull
git add .
git commit -m "test(screenshots): update screenshots for ${{ runner.os }}"
git push
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}