-
-
Notifications
You must be signed in to change notification settings - Fork 5
76 lines (64 loc) · 1.82 KB
/
dev.yml
File metadata and controls
76 lines (64 loc) · 1.82 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: dev
on:
pull_request:
push:
branches:
- main
env:
CI: true
jobs:
test:
name: Tests for Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node: [16, 18, 20, 22, 24]
os: [ubuntu-latest, windows-latest, macos-latest]
include:
- node: 10
os: ubuntu-latest
- node: 12
os: ubuntu-latest
- node: 14
os: ubuntu-latest
- node: 10
os: windows-latest
- node: 12
os: windows-latest
- node: 14
os: windows-latest
steps:
- name: Clone repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Set Node.js version
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version: ${{ matrix.node }}
- name: Check node version
run: node --version
- name: Check npm version
run: npm --version
- name: Install npm dependencies
run: npm install
- name: Run lint
if: ${{ matrix.node > 16 }}
run: npm run lint
- name: Run tests
run: npm test
- name: Coveralls
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: ${{matrix.os}}-node-${{ matrix.node }}
parallel: true
coveralls:
needs: test
name: Finish up
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true