This repository was archived by the owner on Mar 22, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathconfig.yml
80 lines (71 loc) · 1.95 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: 2
#
# Jobs
#
jobs:
# This job builds the base project directory (e.g. ~/package.json)
build:
docker:
- image: circleci/node:6@sha256:59eb8bdf20ebe30195549433423276a2159f57ed94dd0423b8b6e8ad1653f8c5
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- run: npm install
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- node_modules
# This job runs the lint tool on the whole repository
lint:
docker:
- image: circleci/node:6@sha256:59eb8bdf20ebe30195549433423276a2159f57ed94dd0423b8b6e8ad1653f8c5
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- run:
name: Lint
command: npm run lint
# runs the unit tests
unit-test:
docker:
- image: circleci/node:6@sha256:59eb8bdf20ebe30195549433423276a2159f57ed94dd0423b8b6e8ad1653f8c5
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- run:
name: Unit tests
command: |
npm run test &&
./node_modules/.bin/nyc report --temp-directory=coverage --reporter=text-lcov | ./node_modules/.bin/coveralls
release:
docker:
- image: circleci/node:8@sha256:6c751e82876608a535426c12257956fd0f47e29c745b5028012944896faf6867
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- run: npm run semantic-release -- -d # DRY RUN!
#
# Workflows
#
workflows:
version: 2
build_test_release:
jobs:
- build
- lint:
requires:
- build
- unit-test:
requires:
- build
- release:
requires:
- lint
- unit-test
filters:
branches:
only: master