File tree Expand file tree Collapse file tree 2 files changed +35
-18
lines changed Expand file tree Collapse file tree 2 files changed +35
-18
lines changed Original file line number Diff line number Diff line change @@ -17,51 +17,66 @@ jobs:
17
17
- name : Install Dependencies
18
18
run : npm install
19
19
- name : Test
20
- run : npm run test-in-browsers
20
+ run : npm run test:browser
21
+
22
+ lint :
23
+ runs-on : ubuntu-latest
24
+ steps :
25
+ - uses : actions/checkout@v3
26
+ - uses : actions/setup-node@v3
27
+ with :
28
+ node-version : 18
29
+ - name : Install Dependencies
30
+ run : npm install --ignore-scripts
31
+ - name : Lint
32
+ run : npm run lint
33
+
21
34
test :
22
35
runs-on : ubuntu-latest
23
36
strategy :
24
37
matrix :
25
38
node-version :
39
+ - 6
40
+ - 8
26
41
- 10
27
42
- 11
28
43
- 12
29
44
- 13
30
45
- 14
31
- - 15
32
46
- 16
47
+ - 18
33
48
steps :
34
49
- uses : actions/checkout@v3
35
50
- name : Use Node.js ${{ matrix.node-version }}
36
51
uses : actions/setup-node@v3
37
52
with :
38
53
node-version : ${{ matrix.node-version }}
54
+ - name : Upgrade npm
55
+ if : ${{ success() && matrix.node-version == '6' }}
56
+ run : npm i npm@6.13.4 -g
39
57
- name : Install Dependencies
40
58
run : npm install --ignore-scripts
41
59
- name : Test
42
- run : npm test
43
- test-legacy :
60
+ run : npm run test:unit
61
+
62
+ typescript :
44
63
runs-on : ubuntu-latest
45
- strategy :
46
- matrix :
47
- node-version :
48
- - 6
49
- - 8
50
64
steps :
51
65
- uses : actions/checkout@v3
52
- - name : Use Node.js ${{ matrix.node-version }}
53
- uses : actions/setup-node@v3
66
+ - uses : actions/setup-node@v3
54
67
with :
55
- node-version : ${{ matrix.node-version }}
68
+ node-version : 18
56
69
- name : Install Dependencies
57
70
run : npm install --ignore-scripts
58
- - name : Test
59
- run : npm run test-legacy
71
+ - name : tsd
72
+ run : npm run test:typescript
73
+
60
74
automerge :
61
75
needs :
76
+ - lint
62
77
- browsers
63
78
- test
64
- - test-legacy
79
+ - typescript
65
80
runs-on : ubuntu-latest
66
81
permissions :
67
82
pull-requests : write
Original file line number Diff line number Diff line change 6
6
"types" : " index.d.ts" ,
7
7
"scripts" : {
8
8
"benchmark" : " cd benchmarks && npm install && npm run all" ,
9
- "test" : " standard && tsd && nyc tape test.js" ,
10
- "test-in-browsers" : " airtap test.js" ,
11
- "test-legacy" : " nyc tape test.js"
9
+ "lint" : " standard" ,
10
+ "test" : " nyc tape test.js" ,
11
+ "test:unit" : " tape test.js" ,
12
+ "test:typescript" : " tsd" ,
13
+ "test:browser" : " airtap test.js"
12
14
},
13
15
"repository" : {
14
16
"type" : " git" ,
You can’t perform that action at this time.
0 commit comments