-
Notifications
You must be signed in to change notification settings - Fork 5
59 lines (53 loc) · 1.99 KB
/
percy-snapshots.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
55
56
57
58
59
name: Percy Snapshots
on:
push:
branches-ignore: dev/*
pull_request:
jobs:
nonce:
runs-on: ubuntu-latest
outputs:
result: ${{ steps.nonce.outputs.result }}
steps:
- id: nonce
run: echo result=${{ github.run_id }}-$(date +%s) >> $GITHUB_OUTPUT
call_snapshots_default:
needs: nonce
uses: yext/slapshot-reusable-workflows/.github/workflows/percy_snapshots.yml@v1
with:
build_script: npm run setup-test-site && npm run build-test-site
percy_script: npx percy exec --parallel -- node tests/percy/index.js
PERCY_PARALLEL_NONCE: ${{ needs.nonce.outputs.result }}
PERCY_PARALLEL_TOTAL: 4
secrets:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
call_snapshots_iframe:
needs: nonce
uses: yext/slapshot-reusable-workflows/.github/workflows/percy_snapshots.yml@v1
with:
build_script: npm run setup-test-site && npm run build-test-site
percy_script: npx percy exec --parallel -- node tests/percy/index.js iframe
PERCY_PARALLEL_NONCE: ${{ needs.nonce.outputs.result }}
PERCY_PARALLEL_TOTAL: 4
secrets:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
call_snapshots_spanish:
needs: nonce
uses: yext/slapshot-reusable-workflows/.github/workflows/percy_snapshots.yml@v1
with:
build_script: npm run setup-test-site && npm run build-test-site
percy_script: npx percy exec --parallel -- node tests/percy/index.js spanish
PERCY_PARALLEL_NONCE: ${{ needs.nonce.outputs.result }}
PERCY_PARALLEL_TOTAL: 4
secrets:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}
call_snapshots_rtl:
needs: nonce
uses: yext/slapshot-reusable-workflows/.github/workflows/percy_snapshots.yml@v1
with:
build_script: npm run setup-test-site && npm run build-test-site
percy_script: npx percy exec --parallel -- node tests/percy/index.js rtl
PERCY_PARALLEL_NONCE: ${{ needs.nonce.outputs.result }}
PERCY_PARALLEL_TOTAL: 4
secrets:
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}