version: 2
jobs:
build:
docker:
- image: cypress/base:10
- image: circleci/node:10.15.3
working_directory: ~/repo
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: npm ci
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
# run tests!
- run: npm run e2e
# build apps!
- run: npm run affected:build -- --all
首先,我遇到了赛普拉斯无法与Circle CI一起运行的问题,我向docker添加了一个图像:cypress / base:10,它得到了解决。现在,如上面的屏幕快照所示,似乎存在与缓存有关的权限问题,我正在研究如何解决它,并且我还需要一些帮助来解决它。 谢谢。