This repository was archived by the owner on Jan 8, 2025. It is now read-only.
File tree 3 files changed +7835
-17628
lines changed
3 files changed +7835
-17628
lines changed Original file line number Diff line number Diff line change 1
- # Javascript Node CircleCI 2.0 configuration file
2
- #
3
- # Check https://circleci.com/docs/2.0/language-javascript/ for more details
4
- #
5
- version : 2
1
+ version : 2.1
6
2
7
- jobs :
8
- build :
9
- docker :
10
- - image : circleci/node:latest
11
- environment :
12
- - NODE_ENV : test
3
+ orbs :
4
+
5
+ codecov :
codecov/[email protected]
13
6
7
+ jobs :
8
+ test :
9
+ executor :
10
+ name : node/default
11
+ tag : ' current'
14
12
steps :
15
13
- checkout
16
-
17
- - restore_cache :
18
- keys :
19
- - dependencies-v2-{{ checksum "package.json" }}
20
-
21
- - run :
22
- name : Install global packages
23
- command : sudo npm install -g codecov
24
-
25
- - run :
26
- name : Install dependencies
27
- command : npm install
28
-
29
- - save_cache :
30
- key : dependencies-v2-{{ checksum "package.json" }}
31
- paths :
32
- - node_modules
33
-
14
+ - node/install-packages
34
15
- run :
35
16
name : Javascript Linter
36
- command :
37
- set -e
38
- npm run lint
39
-
17
+ command : npm run lint
40
18
- run :
41
- name : All Unit Tests with Code Coverage
42
- command :
43
- npm run test:unit:cov
44
-
19
+ name : Unit tests with code coverage
20
+ command : npm run test:unit:cov
45
21
- run :
46
22
name : Server Tests
47
23
command :
48
24
npm run test:server
49
25
50
- - run :
51
- name : Send reports to codecov.io
52
- command : codecov
26
+ workflows :
27
+ node-tests :
28
+ jobs :
29
+ - test :
30
+ post-steps :
31
+ - codecov/upload
You can’t perform that action at this time.
0 commit comments