Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate CI config to CircleCI v2 #212

Merged
merged 6 commits into from
Dec 7, 2018
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Note: all paths are relative to the default workspace ~/project
version: 2.1
executors:
node-11:
wtho marked this conversation as resolved.
Show resolved Hide resolved
docker:
- image: circleci/node:10
jobs:
install-dependencies:
executor: node-11
steps:
- checkout
- restore_cache:
keys:
# if lock file changes, we still use increasingly general patterns to restore cache
# the install afterwards will only install packages with different versions
- yarn-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
- yarn-cache-{{ .Branch }}-
- run:
name: Install dependencies
command: |
yarn --version
yarn install --frozen-lockfile
cd example
yarn install --frozen-lockfile
wtho marked this conversation as resolved.
Show resolved Hide resolved
- save_cache:
key: yarn-cache-{{ .Branch }}-{{ checksum "yarn.lock" }}
paths:
- ~/.yarn
- ~/.cache/yarn
- ./node_modules
- ./example/node_modules
- persist_to_workspace:
root: .
paths: .
unit-tests-library:
executor: node-11
steps:
- attach_workspace:
at: .
- run:
name: Test Library
command: |
yarn test:ci
unit-tests-example:
executor: node-11
steps:
- attach_workspace:
at: .
- run:
name: Test Example
command: |
cd example
yarn test:ci
yarn test:coverage
workflows:
version: 2
build-and-test:
jobs:
- install-dependencies
- unit-tests-library:
requires:
- install-dependencies
- unit-tests-example:
requires:
- install-dependencies

23 changes: 0 additions & 23 deletions circle.yml

This file was deleted.