Skip to content

Commit

Permalink
Configure basic tests on circle ci
Browse files Browse the repository at this point in the history
  • Loading branch information
danekszy committed Aug 9, 2019
1 parent 19465db commit 2081536
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
version: 2.1

commands:
test-nodejs:
steps:
- run:
name: NPM Versions
command: npm version
- checkout
- restore_cache:
keys:
- v{{ .Environment.CIRCLE_CACHE_VERSION }}-{{ arch }}-npm-cache-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}
- v{{ .Environment.CIRCLE_CACHE_VERSION }}-{{ arch }}-npm-cache-master-{{ .Environment.CIRCLE_JOB }}
- run:
name: Install dependencies
command: npm ci
- run:
name: Webpack build
command: npm run build
- run:
name: Test
command: npm test
- save-npm-cache
save-npm-cache:
steps:
- save_cache:
key: v{{ .Environment.CIRCLE_CACHE_VERSION }}-{{ arch }}-npm-cache-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package-lock.json" }}
paths:
- ~/.npm/_cacache

jobs:
node-v10:
docker:
- image: node:10
steps:
- test-nodejs

workflows:
unit-test:
jobs:
- node-v10

0 comments on commit 2081536

Please sign in to comment.