-
Notifications
You must be signed in to change notification settings - Fork 107
56 lines (53 loc) · 1.33 KB
/
config.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: test
on:
push:
branches: [ master, uses-import-instead-of-require ]
pull_request:
branches: [ master ]
jobs:
# Oldest maintenance LTS, End-of-Life 2025-04-30
test-node-18:
runs-on: ubuntu-latest
container:
image: node:18.19
env:
NODE_OPTIONS: --openssl-legacy-provider
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
run: |
echo "Node version: $(node --version)"
echo "NPM version: $(npm --version)"
npm install
npm run ci
- name: Unset NODE_OPTIONS
run: |
unset NODE_OPTIONS
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- "current"
- "20.10"
env:
NODE_OPTIONS: --openssl-legacy-provider
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Print Node.js version
run: |
echo "Node version: $(node --version)"
echo "NPM version: $(npm --version)"
- name: Install dependencies and run tests
run: |
npm install
npm run ci
- name: Unset NODE_OPTIONS
run: |
unset NODE_OPTIONS