forked from ben-ng/sourcemap-validator
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (34 loc) · 754 Bytes
/
nodejs.yml
File metadata and controls
35 lines (34 loc) · 754 Bytes
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: Node CI
on: [push]
env:
FORCE_COLOR: 2
jobs:
test:
name: v${{ matrix.node }} @ ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node:
- 8
- 10
- 12
- 14
- 16
- 18
- 20
- 22
os:
- ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
registry-url: 'https://registry.npmjs.org'
cache: ''
- run: npm config --global set spin false
if: '${{ matrix.node < 18 }}'
- run: yarn install --frozen-lockfile
- run: yarn run test