File tree Expand file tree Collapse file tree 3 files changed +9
-17
lines changed Expand file tree Collapse file tree 3 files changed +9
-17
lines changed Original file line number Diff line number Diff line change 14
14
runs-on : ubuntu-latest
15
15
strategy :
16
16
matrix :
17
- node-version : [20, 22]
17
+ node-version : [18, 20, 22]
18
18
19
19
steps :
20
20
- name : Checkout repository
@@ -29,20 +29,13 @@ jobs:
29
29
run : npm ci
30
30
31
31
- name : Run tests
32
+ if : matrix.node-version != 22
32
33
run : npm test
33
34
34
- - name : Collect coverage
35
- uses : coverallsapp/github-action@v2
36
- with :
37
- flag-name : run-${{ join(matrix.*, '-') }}
38
- parallel : true
35
+ - name : Run tests with coverage
36
+ if : matrix.node-version == 22
37
+ run : npm run test:coverage
39
38
40
- coverage :
41
- name : Publish coverage
42
- needs : test
43
- runs-on : ubuntu-latest
44
- steps :
45
- - name : Publish coverage
39
+ - name : Collect coverage
40
+ if : matrix.node-version == 22
46
41
uses : coverallsapp/github-action@v2
47
- with :
48
- parallel-finished : true
Original file line number Diff line number Diff line change @@ -46,5 +46,3 @@ accept({
46
46
## Contributing
47
47
48
48
Checkout the organization [ CONTRIBUTING.md] ( https://github.com/react-dropzone/.github/blob/main/CONTRIBUTING.md ) .
49
-
50
- ** NOTE** The minimum required Node version for development is v20.
Original file line number Diff line number Diff line change 14
14
"scripts" : {
15
15
"prepublish" : " npm test" ,
16
16
"pretest" : " npm run lint" ,
17
- "test" : " node --test --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=lcov.info" ,
17
+ "test" : " node --test" ,
18
+ "test:coverage" : " node --test --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=lcov.info" ,
18
19
"test:watch" : " node --test --watch" ,
19
20
"lint" : " eslint src/ test/" ,
20
21
"lint:fix" : " eslint --fix src/ test/" ,
You can’t perform that action at this time.
0 commit comments