File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717 - name : Install pnpm
1818 uses : pnpm/action-setup@v2
1919 with :
20- version : 7
20+ version : 8
2121 - name : Install Node.js
2222 uses : actions/setup-node@v3
2323 with :
3636 - name : Checkout the repository
3737 uses : actions/checkout@v3
3838 - name : Check editorconfig
39- uses : editorconfig-checker/action-editorconfig-checker@v1
39+ uses : editorconfig-checker/action-editorconfig-checker@main
4040 package-json :
4141 runs-on : ubuntu-latest
4242 name : package.json
4646 - name : Install pnpm
4747 uses : pnpm/action-setup@v2
4848 with :
49- version : 7
49+ version : 8
5050 - name : Install Node.js
5151 uses : actions/setup-node@v3
5252 with :
Original file line number Diff line number Diff line change 55 branches :
66 - main
77jobs :
8+ list-packages :
9+ runs-on : ubuntu-latest
10+ outputs :
11+ matrix : ${{ steps.set-matrix.outputs.matrix }}
12+ steps :
13+ - name : Checkout the repository
14+ uses : actions/checkout@v3
15+ - name : Install Node.js
16+ uses : actions/setup-node@v3
17+ with :
18+ node-version : 16
19+ - id : set-matrix
20+ run : node -e "console.log(JSON.stringify(fs.readdirSync('packages')))"
821 test :
922 runs-on : ubuntu-latest
10- name : Tests
23+ needs : list-packages
24+ strategy :
25+ matrix :
26+ package : ${{ fromJson(needs.list-packages.outputs.matrix) }}
27+ name : ${{ matrix.package }} tests
1128 steps :
1229 - name : Checkout the repository
1330 uses : actions/checkout@v3
1431 - name : Install pnpm
1532 uses : pnpm/action-setup@v2
1633 with :
17- version : 7
34+ version : 8
1835 - name : Install Node.js
1936 uses : actions/setup-node@v3
2037 with :
@@ -23,10 +40,10 @@ jobs:
2340 - name : Install dependencies
2441 run : pnpm install
2542 - name : Run tests
26- run : pnpm test
43+ run : pnpm test packages/${{ matrix.package }}
2744 - name : Collect coverage
2845 uses : codecov/codecov-action@v3
2946 if : success()
3047 with :
48+ flags : ${{ matrix.package }}
3149 files : ./coverage/lcov.info
32- fail_ci_if_error : true
Original file line number Diff line number Diff line change 1313 - name : Install pnpm
1414 uses : pnpm/action-setup@v2
1515 with :
16- version : 7
16+ version : 8
1717 - name : Install Node.js
1818 uses : actions/setup-node@v3
1919 with :
Original file line number Diff line number Diff line change 1212 - name : Install pnpm
1313 uses : pnpm/action-setup@v2
1414 with :
15- version : 7
15+ version : 8
1616 - name : Install Node.js
1717 uses : actions/setup-node@v3
1818 with :
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3434 "devDependencies" : {
3535 "@commitlint/cli" : " ^17.0.0" ,
3636 "@commitlint/config-conventional" : " ^17.0.0" ,
37- "@commitlint/config-pnpm-scopes" : " ^17.3 .0" ,
37+ "@commitlint/config-pnpm-scopes" : " ^17.5 .0" ,
3838 "@commitlint/cz-commitlint" : " ^17.0.0" ,
39- "@pnpm/find-workspace-packages" : " ^5.0.10" ,
40- "@pnpm/logger" : " ^5.0.0" ,
4139 "@rollup/plugin-node-resolve" : " ^15.0.1" ,
4240 "@size-limit/file" : " ^8.0.0" ,
4341 "@swc/core" : " ^1.3.20" ,
4442 "@trigen/browserslist-config" : " 8.0.0-alpha.23" ,
4543 "@trigen/eslint-config" : " 8.0.0-alpha.23" ,
4644 "@trigen/scripts" : " 8.0.0-alpha.23" ,
4745 "@types/node" : " ^18.0.0" ,
48- "@vitest/coverage-c8 " : " ^0.26.0 " ,
46+ "@vitest/coverage-v8 " : " ^0.34.4 " ,
4947 "browserslist" : " ^4.21.4" ,
5048 "clean-publish" : " ^4.0.1" ,
5149 "commitizen" : " ^4.2.4" ,
6058 "standard-version" : " ^9.3.2" ,
6159 "typescript" : " ^4.9.3" ,
6260 "vite" : " ^4.0.0" ,
63- "vitest" : " ^0.26.0 "
61+ "vitest" : " ^0.34.4 "
6462 }
6563}
You can’t perform that action at this time.
0 commit comments