Skip to content

Commit c1297a8

Browse files
authored
ci(e2e): manually setup chrome to fix puppeteer errrors (#8819)
Manually install Chrome using an action to prevent errors with Puppeteer trying to install Chrome from a broken URL. ``` npm ERR! code 1 npm ERR! path /home/runner/work/calcite-design-system/calcite-design-system/node_modules/puppeteer npm ERR! command failed npm ERR! command sh -c node install.mjs npm ERR! ERROR: Failed to set up Chrome r119.0.6045.105! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download. npm ERR! Error: Download failed: server returned code 500. URL: https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/119.0.6045.105/linux64/chrome-linux64.zip npm ERR! at file:///home/runner/work/calcite-design-system/calcite-design-system/node_modules/@puppeteer/browsers/lib/esm/httpUtil.js:74:31 npm ERR! at ClientRequest.requestCallback (file:///home/runner/work/calcite-design-system/calcite-design-system/node_modules/@puppeteer/browsers/lib/esm/httpUtil.js:52:13) npm ERR! at Object.onceWrapper (node:events:629:26) npm ERR! at ClientRequest.emit (node:events:514:28) npm ERR! at HTTPParser.parserOnIncomingClient (node:_http_client:693:27) npm ERR! at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17) npm ERR! at TLSSocket.socketOnData (node:_http_client:535:22) npm ERR! at TLSSocket.emit (node:events:514:28) npm ERR! at addChunk (node:internal/streams/readable:545:12) npm ERR! at readableAddChunkPushByteMode (node:internal/streams/readable:495:3) ``` error: https://github.com/Esri/calcite-design-system/actions/runs/8009736114/job/21879085441#step:4:62 related issue: GoogleChromeLabs/chrome-for-testing#109
1 parent 4f65bdd commit c1297a8

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/pr-e2e.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,17 @@ jobs:
2424
echo "run e2e"
2525
echo "SKIP=false" >> $GITHUB_OUTPUT
2626
fi
27-
- uses: actions/setup-node@v3
27+
- if: steps.markdown-check.outputs.SKIP == 'false'
28+
uses: actions/setup-node@v3
2829
with:
2930
node-version-file: package.json
30-
- run: npm install
3131
- if: steps.markdown-check.outputs.SKIP == 'false'
32-
run: npm run build && npm run test
32+
uses: browser-actions/setup-chrome@v1
33+
id: setup-chrome
34+
with:
35+
chrome-version: stable
36+
- if: steps.markdown-check.outputs.SKIP == 'false'
37+
run: npm install && npm run build && npm run test
38+
env:
39+
PUPPETEER_EXECUTABLE_PATH: ${{ steps.setup-chrome.outputs.chrome-path }}
40+
PUPPETEER_SKIP_DOWNLOAD: true

0 commit comments

Comments
 (0)