ci: use puppeteer image in gh actions (#46100)

This commit is contained in:
vagusX 2023-11-27 15:48:42 +08:00 committed by GitHub
parent 2938a8c828
commit 8f566a028b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -15,6 +15,7 @@ jobs:
setup:
name: prepare node_modules
runs-on: ubuntu-latest
container: ghcr.io/puppeteer/puppeteer:21.5.2
steps:
- name: checkout
uses: actions/checkout@v4
@ -67,7 +68,9 @@ jobs:
- name: generate image snapshots
id: site
run: npm run test-image
run: |
npm run version
npm run test-image
env:
SITE_ENV: development
NODE_OPTIONS: "--max_old_space_size=4096"

2
.gitignore vendored
View File

@ -61,7 +61,7 @@ components/version/token-meta.json
__diff_output__/
__image_snapshots__/
/jest-stare
/imageSnapshots
/imageSnapshots*
/imageDiffSnapshots
.devcontainer*