-
Notifications
You must be signed in to change notification settings - Fork 9
49 lines (49 loc) · 1.42 KB
/
matrix.yml
File metadata and controls
49 lines (49 loc) · 1.42 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
name: Test Matrix
on:
push:
branches:
- master
- develop
jobs:
build:
continue-on-error: true
strategy:
matrix:
node-version: [16, 18, 20]
operating-system: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install and Cache Dependencies
uses: ./.github/actions/cached-deps
- name: Build
if: matrix.node-version != 20 && matrix.node-version != 18
run: npm run build
- name: Build with legacy OpenSSL (Node 18 and 20)
if: matrix.node-version == 20 || matrix.node-version == 18
env:
NODE_OPTIONS: --openssl-legacy-provider
run: npm run build
test:
continue-on-error: true
strategy:
matrix:
node-version: [16, 18, 20]
operating-system: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.operating-system }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install and Cache Dependencies
uses: ./.github/actions/cached-deps
- name: Test
run: npm run test