Skip to content

Commit b30be02

Browse files
committed
[fix] test node 12
1 parent 8aaeb89 commit b30be02

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.circleci/config.yml

+36
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,42 @@ jobs:
7070
<<: *defaults
7171
steps:
7272
- run: echo "Running node v12"
73+
- checkout
74+
- run:
75+
name: update-npm
76+
command: 'sudo npm install -g npm@5'
77+
- restore_cache:
78+
key: dependency-cache-{{ checksum "package.json" }}
79+
- run:
80+
name: install-npm-wee
81+
command: npm install
82+
- save_cache:
83+
key: dependency-cache-{{ checksum "package.json" }}
84+
paths:
85+
- ./node_modules
86+
- run:
87+
name: test
88+
command: npm test
89+
- run:
90+
name: test performance
91+
command: npm run test-performance
92+
- run:
93+
name: test archetype
94+
command: npm run test-archetype
95+
- run:
96+
name: code-coverage
97+
command: './node_modules/.bin/nyc report --reporter=text-lcov'
98+
- store_artifacts:
99+
path: test-results.xml
100+
prefix: tests
101+
- store_artifacts:
102+
path: coverage
103+
prefix: coverage
104+
- store_test_results:
105+
path: test-results.xml
106+
- persist_to_workspace:
107+
root: ~/fabrix
108+
paths: .
73109

74110
workflows:
75111
version: 2

0 commit comments

Comments
 (0)