ci: add npx playwright install chromium

This commit is contained in:
taian.lta 2024-07-23 08:48:54 +08:00 committed by vagusX
parent 672c52ab6f
commit 239f933db4
2 changed files with 6 additions and 0 deletions

View File

@ -125,7 +125,10 @@ jobs:
- name: run visual-diff capture
run: |
npx playwright install chromium
npm run visual-diff:capture
env:
NODE_OPTIONS: "--max_old_space_size=4096"
- name: artifact snapshot
uses: actions/upload-artifact@v4

View File

@ -119,8 +119,11 @@ jobs:
- name: run visual-diff capture
run: |
npx playwright install chromium
npm run visual-diff:capture
tar -czvf imageSnapshots.tar.gz imageSnapshots/*
env:
NODE_OPTIONS: "--max_old_space_size=4096"
# Upload `imageSnapshots` on master
- name: upload report artifact