-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (35 loc) · 1.02 KB
/
matrix.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
name: Matrix Demo Workflow
on: workflow_dispatch
jobs:
build:
continue-on-error: true
strategy:
matrix:
node-version: [12, 14, 16, 18]
operating-system: [ubuntu-latest, windows-latest]
include:
- node-version: 12
operating-system: ubuntu-22.04
- node-version: 14
operating-system: ubuntu-22.04
- node-version: 16
operating-system: ubuntu-latest
- node-version: 18
operating-system: ubuntu-latest
- node-version: 18
operating-system: windows-latest
exclude:
- node-version: 12
operating-system: windows-latest
runs-on: ${{ matrix.operating-system }}
steps:
- name: Get code
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install Dependencies
run: npm ci
- name: Build project
run: npm run build