File tree Expand file tree Collapse file tree 6 files changed +91
-215
lines changed Expand file tree Collapse file tree 6 files changed +91
-215
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -2,34 +2,37 @@ name: CI Tests
2
2
3
3
on : [ push, pull_request ]
4
4
5
- jobs :
5
+ env :
6
+ CI : true
6
7
8
+ jobs :
7
9
ci-test :
8
-
10
+ needs : [get-lts]
9
11
runs-on : ${{ matrix.os }}
10
-
11
12
strategy :
12
13
matrix :
13
- os : [ ubuntu-latest ]
14
- node-version : [12.x, 14.x]
14
+ os : [ ubuntu-latest, windows-latest ]
15
+ node-version : ${{ fromJson(needs.get-lts.outputs.active) }}
15
16
fail-fast : false
16
17
17
18
steps :
18
- - uses : actions/checkout@v2
19
- name : Checkout Code
19
+ - uses : actions/checkout@v4
20
20
with :
21
21
fetch-depth : 1
22
22
23
- - uses : actions/setup-node@v1
23
+ - uses : actions/setup-node@v4
24
24
name : Use Node.js ${{ matrix.node-version }}
25
25
with :
26
26
node-version : ${{ matrix.node-version }}
27
27
28
- - name : Install
29
- run : npm install
30
-
31
- - name : Test
32
- run : npm run test
28
+ - run : npm install
29
+ - run : npm run test
33
30
34
- env :
35
- CI : true
31
+ get-lts :
32
+ runs-on : ubuntu-latest
33
+ steps :
34
+ - id : get
35
+ uses : msimerson/node-lts-versions@v1
36
+ outputs :
37
+ active : ${{ steps.get.outputs.active }}
38
+ lts : ${{ steps.get.outputs.lts }}
Original file line number Diff line number Diff line change @@ -2,32 +2,16 @@ name: Lint
2
2
3
3
on : [ push, pull_request ]
4
4
5
- jobs :
5
+ env :
6
+ CI : true
6
7
8
+ jobs :
7
9
lint :
8
-
9
10
runs-on : ubuntu-latest
10
-
11
- strategy :
12
- matrix :
13
- node-version : [ 12.x ]
14
-
15
11
steps :
16
- - uses : actions/checkout@v2
17
- name : Checkout Code
12
+ - uses : actions/checkout@v4
18
13
with :
19
14
fetch-depth : 1
20
-
21
- - uses : actions/setup-node@v1
22
- name : Use Node.js ${{ matrix.node-version }}
23
- with :
24
- node-version : ${{ matrix.node-version }}
25
-
26
- - name : Install
27
- run : npm install
28
-
29
- - name : Lint
30
- run : npm run lint
31
-
32
- env :
33
- CI : true
15
+ - uses : actions/setup-node@v4
16
+ - run : npm install
17
+ - run : npm run lint
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 8
8
},
9
9
"dependencies" : {},
10
10
"devDependencies" : {
11
- "eslint" : " *" ,
12
- "mocha" : " *" ,
11
+ "eslint" : " ^8.57.0" ,
13
12
"uglify-es" : " *"
14
13
},
15
14
"scripts" : {
16
- "lint" : " npx eslint lib test " ,
15
+ "lint" : " npx eslint lib" ,
17
16
"lintfix" : " npx eslint --fix lib test" ,
18
17
"build" : " npx uglifyjs --compress --mangle --wrap=window -o ipaddr.min.js lib/ipaddr.js" ,
19
- "test" : " npx _mocha "
18
+ "test" : " node --test "
20
19
},
21
20
"files" : [
22
- " lib/ " ,
21
+ " lib" ,
23
22
" LICENSE" ,
24
23
" ipaddr.min.js"
25
24
],
You can’t perform that action at this time.
0 commit comments