-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (36 loc) · 1.03 KB
/
matrix.yaml
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
name: matrix demo
on: workflow_dispatch
jobs:
build:
continue-on-error: true # to make sure all jobs are run.
strategy:
matrix:
node-version: [12, 16]
operating-system: [ubuntu-latest] # , windows-latest]
# additional combinations, can also add new keys here.
include:
- node-version: 18
operating-system: ubuntu-latest
exclude:
- node-version: 12
operating-system: windows-latest
runs-on: ${{ matrix.operating-system }}
steps:
- name: get code
uses: actions/checkout@v3
- name: install nodejs
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: dpes
run: npm ci
- name: build
run: npm run build
deploy:
needs: build
# can also be a path in a different repo
uses: ./.github/workflows/reusable.yaml
with:
artifact-name: my-artifact
#secret:
# secret-name: ${{ secrets.xyz }}