@@ -84,14 +84,16 @@ jobs:
84
84
actions : read
85
85
issues : read
86
86
pull-requests : read
87
- environment :
88
- Cypress
89
- # strategy:
90
- # fail-fast: false
91
- # matrix:
92
- # # Run 4 instances in Parallel
93
- # runner: [1, 2, 3, 4]
87
+ environment : Cypress
88
+ strategy :
89
+ fail-fast : false
90
+ matrix :
91
+ # Run 4 instances in Parallel
92
+ runner : [1, 2, 3, 4]
94
93
steps :
94
+ - uses : browser-actions/setup-chrome@latest
95
+ - run : echo "BROWSER_PATH=$(which chrome)" >> $GITHUB_ENV
96
+
95
97
- uses : tecolicom/actions-use-apt-tools@v1
96
98
with :
97
99
# Our test suite includes some screenshot tests with unusual diacritics, which are
@@ -121,14 +123,12 @@ jobs:
121
123
with :
122
124
# The built-in Electron runner seems to grind to a halt trying
123
125
# to run the tests, so use chrome.
124
- browser : chrome
126
+ browser : " ${{ env.BROWSER_PATH }} "
125
127
start : npx serve -p 8080 webapp
126
128
wait-on : " http://localhost:8080"
127
- record :
128
- true
129
- # parallel: true
130
- # command-prefix: 'yarn percy exec --parallel --'
131
- command-prefix : " yarn percy exec --"
129
+ record : true
130
+ parallel : true
131
+ command-prefix : " yarn percy exec --parallel --"
132
132
config : ' {"reporter":"cypress-multi-reporters", "reporterOptions": { "configFile": "cypress-ci-reporter-config.json" } }'
133
133
ci-build-id : ${{ needs.prepare.outputs.uuid }}
134
134
env :
@@ -159,9 +159,8 @@ jobs:
159
159
# tell Percy more details about the context of this run
160
160
PERCY_BRANCH : ${{ github.event.workflow_run.head_branch }}
161
161
PERCY_COMMIT : ${{ github.event.workflow_run.head_sha }}
162
- PERCY_PULL_REQUEST :
163
- ${{ needs.prepare.outputs.pr_id }}
164
- # PERCY_PARALLEL_TOTAL: ${{ strategy.job-total }}
162
+ PERCY_PULL_REQUEST : ${{ needs.prepare.outputs.pr_id }}
163
+ PERCY_PARALLEL_TOTAL : ${{ strategy.job-total }}
165
164
PERCY_PARALLEL_NONCE : ${{ needs.prepare.outputs.uuid }}
166
165
167
166
- name : Upload Artifact
0 commit comments