forked from smooth80/quickstart-testing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmatrix-jobs
49 lines (44 loc) · 1.17 KB
/
matrix-jobs
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
version: 2.1
orbs:
node: circleci/[email protected]
win: circleci/[email protected]
executors:
linux: # linux executor using the node base image
docker:
- image: cimg/node
auth:
username: mydockerhub-user
password: $DOCKERHUB_PASSWORD # context / project UI env-var reference
windows: win/default # windows executor - uses the default executor from the windows orb
macos: # macos executor using xcode 11.6
macos:
xcode: 11.6
jobs:
test:
parameters:
os:
type: executor
node-version:
type: string
executor: << parameters.os >>
steps:
- checkout
- node/install:
node-version: << parameters.node-version >>
install-yarn: true
- run: yarn test
workflows:
all-tests:
jobs:
- test:
matrix:
parameters:
os: [linux, windows, macos]
node-version: ["13.13.0", "14.0.0"]
The expanded version of this matrix runs the following list of jobs under the all-tests workflow:
- test-13.13.0-linux
- test-14.0.0-linux
- test-13.13.0-windows
- test-14.0.0-windows
- test-13.13.0-macos
- test-14.0.0-macos