forked from LedgerHQ/ledger-live-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (52 loc) · 1.48 KB
/
generate-screenshots-temp.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Generate Screenshots Test
on:
workflow_dispatch:
inputs:
number:
description: PR to checkout
required: true
jobs:
generate-screenshots:
name: screenshots
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: set git user
run: |
git config user.email "[email protected]"
git config user.name "Team Live"
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: checkout PR
run: gh pr checkout ${{ github.event.inputs.number }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v2
with:
node-version: 14.x
- name: install operating system dependencies
run: npx playwright install-deps
- name: install dependencies
env:
JOBS: max
run: yarn --frozen-lockfile
- name: build electron app
run: yarn build
- name: run ui tests (Linux)
if: matrix.os == 'ubuntu-20.04'
run: DEBUG=pw:browser xvfb-run --auto-servernum -- yarn playwright-update-snapshots
- name: run ui tests (macOS & Windows)
if: matrix.os != 'ubuntu-20.04'
run: yarn playwright-update-snapshots
env:
DEBUG: pw:api
- name: commit
run: |
git status
git add .
git commit -m 'update screenshots'
git push