-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
68 lines (65 loc) · 1.62 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
version: 2.1
orbs:
node-orb: heug/node@dev:0.0.5
jobs:
build:
executor:
name: node-orb/node # put executor in the name
tag: "6.14.4"
parallelism: 3
steps:
- checkout
- run:
name: Check Node version
command: |
if [ "$(node --version)" == "v6.14.4" ]; then
exit 0
else
exit 1
fi
- node-orb/install-package-manager:
npm: true
npm_version: 6.0.1
- run:
name: Check NPM version
command: |
if [ "$(npm --version)" == "6.0.1" ]; then
exit 0
else
npm --version
exit 1
fi
- node-orb/install-package-manager:
yarn: true
yarn_version: 1.10.0
- run:
name: Check Yarn version
command: |
if [ "$(yarn --version)" == "1.10.0" ]; then
exit 0
else
yarn --version
exit 1
fi
- node-orb/with-cache:
steps:
- run:
command: npm install
- run: mkdir -p ~/project/junit
- node-orb/with-splitting:
glob-path: "test/**/*.spec.js"
steps:
- run:
command: npm test --glob ${TESTFILES}
environment:
MOCHA_FILE: ~/project/junit/test-results.xml
when: always
- store_test_results:
path: ~/project/junit
- store_artifacts:
path: ~/project/junit
- run: env
workflows:
build-test-deploy:
jobs:
- build