-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcircle.yml
39 lines (39 loc) · 897 Bytes
/
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
version: 2
jobs:
build_and_test:
working_directory: ~/repo
docker: # requires
- image: circleci/node:14.17.5
steps:
- checkout
- restore_cache:
name: Restoring Cache node_modules
keys:
- node-{{ checksum "package.json" }}
- node-
- run:
name: Setup npm
command: |
npm install
sudo npm install -g gulp
- run:
name: Build project
command: |
gulp
- run:
name: Unit test
command: |
npm run test
- save_cache:
name: Saving Cache node_modules
key: node-{{ checksum "package.json" }}
paths:
- "./node_modules"
workflows:
version: 2
build_and_test:
jobs:
- build_and_test:
filters:
branches:
only: master