-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (46 loc) · 1.43 KB
/
test.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
name: Test
on:
push:
branches:
- master
- develop
- release/*
- hotfix/*
pull_request:
types:
- opened
- synchronize
jobs:
test:
strategy:
matrix:
node-version: # Node.js Releases https://nodejs.org/en/about/previous-releases#nodejs-releases
# - 10.24.1 # LTS Unsupported
# - 11.15.0 # --- Unsupported
# - 12.22.12 # LTS Unsupported
# - 13.14.0 # --- Unsupported
# - 14.21.3 # LTS Unsupported
# - 15.14.0 # --- Unsupported
# - 16.20.2 # LTS Unsupported
# - 17.9.1 # --- Unsupported
# - 18.20.3 # LTS Maintenance
# - 19.9.0 # --- Unsupported
- 20.14.0 # LTS Active
- 21 # Current
- 22 # Current
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- run: git config --global user.name github-actions
- run: git config --global user.email [email protected]
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Ensure dependencies are compatible with the version of node
run: echo 'engine-strict=true' >> .npmrc
- name: Setup NPM
uses: bahmutov/npm-install@v1
- name: Run tests
run: npm run test