Add initial CircleCI config
This commit is contained in:
1 parent
4c76f654b7
commit
615927f3f2
1 file changed
+43
@@ -0,0 +1,43 @@
|
||||
# Javascript Node CircleCI 2.0 configuration file
|
||||
#
|
||||
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
|
||||
#
|
||||
version: 2
|
||||
jobs:
|
||||
build:
|
||||
docker:
|
||||
- image: circleci/node:8.16-browsers
|
||||
|
||||
working_directory: ~/repo
|
||||
|
||||
steps:
|
||||
- checkout
|
||||
|
||||
# Download and cache dependencies
|
||||
- restore_cache:
|
||||
keys:
|
||||
- v1-dependencies-{{ checksum "package-lock.json" }}
|
||||
# fallback to using the latest cache if no exact match is found
|
||||
- v1-dependencies-
|
||||
|
||||
- run:
|
||||
name: Install greenkeeper-lockfile
|
||||
command: sudo npm install -g greenkeeper-lockfile
|
||||
- run:
|
||||
name: Install dependencies
|
||||
command: npm --production=false install
|
||||
- run:
|
||||
name: Run greenkeeper-lockfile-update
|
||||
command: greenkeeper-lockfile-update
|
||||
|
||||
- save_cache:
|
||||
paths:
|
||||
- node_modules
|
||||
key: v1-dependencies-{{ checksum "package-lock.json" }}
|
||||
|
||||
- run:
|
||||
name: Run tests
|
||||
command: npm test
|
||||
- run:
|
||||
name: Run greenkeeper-lockfile-upload
|
||||
command: greenkeeper-lockfile-upload
|
||||
Reference in new issue
Block a user