-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (45 loc) · 1.66 KB
/
matrix.yml
File metadata and controls
56 lines (45 loc) · 1.66 KB
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
name: Matrix
# Set this to push if you want to test this workflow
on: pull_request
jobs:
node-version:
strategy:
matrix:
# The following will run 9 jobs
# Two permutations of operating systems
os: [windows-latest, ubuntu-latest, macos-latest]
# This will run the job 3 times, once for each of the versions below
node_version: [6,8,10]
# This only allows you to add extra key/value pairs for one of the
# permutations of os and node_version above. It does not allow you to
# add an additional permutation. It has to be a string apparently.
include:
- os: ubuntu-latest
node_version: 8
# It will be an empty string if it's not this specified permutation
is_ubuntu_8: "true"
# Run the above permutations except for the following
exclude:
- os: ubuntu-latest
node_version: 6
- os: macos-latest
node_version: 8
# Indicates the maximum number of jobs allowed to run at once.
max-parallel: 2
# This means if one of the above 3 fails, the others will also stop
# If set to false, then the other jobs will continue to run
fail-fast: true
runs-on: ${{ matrix.os }}
env:
IS_UBUNTU_8: ${{ matrix.is_ubuntu_8 }}
steps:
- name: Log node version before changing versions
run: node -v
- uses: actions/setup-node@v1
with:
#node-version: 6
node-version: ${{ matrix.node_version }}
- name: Log node version after changing versions
run: |
node -v
echo $IS_UBUNTU_8