The next step in debugging our periodic rendering test failures is to use a new cache key. This change also removes the less specific key, so we will no longer get partial cache restores. If we don't see test failures after this change, we may try adding the v2-dependencies- as a key.
55 lines
1.1 KiB
YAML
55 lines
1.1 KiB
YAML
version: 2
|
|
jobs:
|
|
build:
|
|
docker:
|
|
- image: circleci/node:current-browsers
|
|
|
|
working_directory: ~/repo
|
|
|
|
steps:
|
|
- checkout
|
|
|
|
- restore_cache:
|
|
keys:
|
|
- v2-dependencies-{{ checksum "package-lock.json" }}
|
|
|
|
- run:
|
|
name: Install Dependencies
|
|
command: npm install
|
|
|
|
- save_cache:
|
|
paths:
|
|
- node_modules
|
|
key: v2-dependencies-{{ checksum "package-lock.json" }}
|
|
|
|
- run:
|
|
name: Run Tests
|
|
command: npm test
|
|
|
|
- store_artifacts:
|
|
path: /home/circleci/.npm/_logs
|
|
|
|
- store_artifacts:
|
|
path: coverage/
|
|
destination: coverage
|
|
|
|
- store_artifacts:
|
|
path: rendering/cases/
|
|
destination: rendering
|
|
|
|
- run:
|
|
name: Build Examples
|
|
command: npm run build-examples
|
|
|
|
- store_artifacts:
|
|
path: build/examples
|
|
destination: examples
|
|
|
|
- run:
|
|
name: Build API Docs
|
|
command: npm run apidoc
|
|
|
|
- store_artifacts:
|
|
path: build/apidoc
|
|
destination: apidoc
|