kopia lustrzana https://github.com/wagtail/wagtail
Add new Puppeteer cache location to fix CircleCI ui_tests (#12293)
rodzic
7cad7c4f0e
commit
84b3bf7034
|
@ -83,16 +83,19 @@ jobs:
|
|||
paths:
|
||||
- .venv
|
||||
- restore_cache:
|
||||
key: ui_tests-npm_integration-v1-{{ checksum "client/tests/integration/package-lock.json" }}
|
||||
key: ui_tests-npm_integration-v2-{{ checksum "client/tests/integration/package-lock.json" }}
|
||||
# Only install if node_modules wasn’t cached.
|
||||
- run: |
|
||||
if [[ ! -e "client/tests/integration/node_modules" ]]; then
|
||||
npm --prefix ./client/tests/integration ci
|
||||
fi
|
||||
- save_cache:
|
||||
key: ui_tests-npm_integration-v1-{{ checksum "client/tests/integration/package-lock.json" }}
|
||||
key: ui_tests-npm_integration-v2-{{ checksum "client/tests/integration/package-lock.json" }}
|
||||
paths:
|
||||
- client/tests/integration/node_modules
|
||||
# Also cache the global location where Puppeteer stores browsers.
|
||||
# https://pptr.dev/guides/configuration/#changing-the-default-cache-directory
|
||||
- ~/.cache/puppeteer
|
||||
- run: pipenv run ./wagtail/test/manage.py migrate
|
||||
- run:
|
||||
command: pipenv run ./wagtail/test/manage.py runserver 0:8000
|
||||
|
|
Ładowanie…
Reference in New Issue