Skip to content

Commit be74cb9

Browse files
committed
ci: update standalone preload script
1 parent 3467955 commit be74cb9

4 files changed

Lines changed: 498 additions & 13 deletions

File tree

.github/workflows/standalone-e2e.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
env:
1111
DOCKER_IMAGE_NAME: html-reporter-browsers
12+
INTEGRATION_BROWSER_VERSION: "138.0"
1213

1314
strategy:
1415
matrix:
@@ -28,17 +29,21 @@ jobs:
2829
uses: actions/cache@v3
2930
with:
3031
path: ~/.testplane
31-
key: ${{ runner.os }}-testplane-${{ matrix.browser }}
32-
restore-keys: |
33-
${{ runner.os }}-testplane-${{ matrix.browser }}-
34-
${{ runner.os }}-testplane-
32+
key: ${{ runner.os }}-testplane-browsers-${{ matrix.browser }}-${{ env.INTEGRATION_BROWSER_VERSION }}
3533

3634
- name: Install dependencies
3735
run: npm ci
3836

3937
- name: Build project
4038
run: npm run build
4139

40+
- name: Preload Chrome browser
41+
if: ${{ matrix.browser == 'chrome' }}
42+
timeout-minutes: 10
43+
env:
44+
BROWSER: ${{ matrix.browser }}
45+
run: TS_NODE_TRANSPILE_ONLY=1 node scripts/run-node-without-type-stripping.js -r ts-node/register scripts/preload-standalone-browser.ts
46+
4247
- name: "Prepare screenshot tests: Cache browser docker image"
4348
if: ${{ matrix.browser == 'chrome' }}
4449
uses: actions/cache@v3

0 commit comments

Comments
 (0)