forked from scttcper/ngx-toastr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
51 lines (50 loc) · 1.22 KB
/
circle.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
version: 2.1
jobs:
test:
docker:
- image: circleci/node:10-browsers
environment:
CHROME_BIN: '/usr/bin/google-chrome'
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: npm-install
command: npm ci
- save_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
paths:
- ~/.npm
- run:
name: test
command: npm run test:ci
- run:
name: lint
command: npm run lint
- run:
name: codecov
command: bash <(curl -s https://codecov.io/bash)
release:
docker:
- image: circleci/node:10
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
- run: npm ci
- run: npm run build
- run: npm run semantic-release
workflows:
version: 2
test_and_release:
# Run the test jobs first, then the release only when all the test jobs are successful
jobs:
- test
- release:
filters:
branches:
only:
- master
requires:
- test