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 1414 runs-on : ubuntu-latest
1515 strategy :
1616 matrix :
17- node-version : [20, 22]
17+ node-version : [18, 20, 22]
1818
1919 steps :
2020 - name : Checkout repository
@@ -29,20 +29,13 @@ jobs:
2929 run : npm ci
3030
3131 - name : Run tests
32+ if : matrix.node-version != 22
3233 run : npm test
3334
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
3938
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
4641 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({
4646## Contributing
4747
4848Checkout 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 1414 "scripts" : {
1515 "prepublish" : " npm test" ,
1616 "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" ,
1819 "test:watch" : " node --test --watch" ,
1920 "lint" : " eslint src/ test/" ,
2021 "lint:fix" : " eslint --fix src/ test/" ,
You can’t perform that action at this time.
0 commit comments