Skip to content

Commit

Permalink
Added CI 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cocojoe committed Jul 10, 2018
1 parent 533f882 commit cd6bac5
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
version: 2
jobs:
build-and-test:
docker:
- image: circleci/node:6.14.3-browsers
environment:
LANG: en_US.UTF-8
steps:
- checkout
- run:
name: Update Yarn
command: 'sudo npm update -g yarn'
- restore-cache:
name: Restore Yarn Package Cache
keys:
- yarn-packages-{{ checksum "yarn.lock" }}
- run:
name: Install Dependencies
command: yarn install --pure-lockfile
- save-cache:
name: Save Yarn Package Cache
key: yarn-packages-{{ checksum "yarn.lock" }}
paths:
- ~/.cache/yarn
- run:
name: Check
command: yarn check
- run:
name: Tests
command: yarn test:ci
- run:
name: Generate Coverage
command: yarn test:coverage

workflows:
version: 2
build-test-report:
jobs:
- build-and-test

0 comments on commit cd6bac5

Please sign in to comment.