-
-
Notifications
You must be signed in to change notification settings - Fork 45
36 lines (33 loc) · 1.03 KB
/
npm-test.yml
File metadata and controls
36 lines (33 loc) · 1.03 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
name: npm test
on: [push, pull_request]
jobs:
test:
name: ${{ matrix.node-version }} on ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node-version: [12, 14, 16, 18, 20, 22, 24, 26]
os: [ubuntu-latest, macOS-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Set git config
shell: bash
run: |
git config --global core.autocrlf false
git config --global core.symlinks true
if: runner.os == 'Windows'
- uses: actions/checkout@v6
with:
show-progress: false
- name: v${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
architecture: 'x64'
- run: npm install
- run: npm i fast-xml-parser@"~5.2" mocha@"~9.2" --no-progress
if: matrix.node-version == 12
- run: npm i mocha@v11 --no-progress
if: matrix.node-version == 26
- run: npm run lint
- run: npm test