Browse Source

Fix CI (#952)

* Checksum against lockfile
* Use Node 8 Docker image
main
Alex Krolick 7 years ago
committed by GitHub
parent
commit
cec61969ea
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      .circleci/config.yml
  2. 2
      package.json

6
.circleci/config.yml

@ -2,12 +2,12 @@ version: 2
jobs: jobs:
build: build:
docker: docker:
- image: circleci/node:latest - image: circleci/node:8
steps: steps:
- checkout - checkout
- restore_cache: - restore_cache:
keys: keys:
- dependencies-{{ checksum "package.json" }} - dependencies-{{ checksum "yarn.lock" }}
# fallback to using the latest cache if no exact match is found # fallback to using the latest cache if no exact match is found
- dependencies- - dependencies-
- run: - run:
@ -16,7 +16,7 @@ jobs:
- save_cache: - save_cache:
paths: paths:
- node_modules - node_modules
key: dependencies-{{ checksum "package.json" }} key: dependencies-{{ checksum "yarn.lock" }}
- run: - run:
name: Check Prettier, ESLint, Flow name: Check Prettier, ESLint, Flow
command: yarn ci-check command: yarn ci-check

2
package.json

@ -62,7 +62,7 @@
"unist-util-visit": "^1.1.3" "unist-util-visit": "^1.1.3"
}, },
"engines": { "engines": {
"node": ">=8.4.0" "node": "^8.4.0"
}, },
"homepage": "https://reactjs.org/", "homepage": "https://reactjs.org/",
"keywords": [ "keywords": [

Loading…
Cancel
Save