Skip to content

Commit 5b67125

Browse files
committed
ci: upgrade pnpm to v8
1 parent 9fc7979 commit 5b67125

8 files changed

Lines changed: 1415 additions & 3878 deletions

File tree

.github/workflows/checks.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
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:
@@ -36,7 +36,7 @@ jobs:
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
@@ -46,7 +46,7 @@ jobs:
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:

.github/workflows/ci.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,33 @@ on:
55
branches:
66
- main
77
jobs:
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('::set-output name=matrix::' + 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 --filter ${{ matrix.package }} test
2744
- name: Collect coverage
2845
uses: codecov/codecov-action@v3
2946
if: success()
3047
with:
31-
files: ./coverage/lcov.info
32-
fail_ci_if_error: true
48+
flags: ${{ matrix.package }}
49+
files: ./packages/${{ matrix.package }}/coverage/lcov.info

.github/workflows/commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
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:

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
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:

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,16 @@
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",
@@ -60,6 +58,6 @@
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
}

packages/simple-github-release/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@
3939
"postpublish": "pnpm clear:package",
4040
"emitDeclarations": "tsc --emitDeclarationOnly",
4141
"build": "run -p [ rollup -c ] emitDeclarations",
42-
"test:size": "size-limit"
42+
"lint": "eslint --parser-options tsconfigRootDir:. '**/*.{js,jsx,ts,tsx}'",
43+
"test:unit": "vitest run --coverage",
44+
"test:size": "size-limit",
45+
"test": "run -p lint test:unit"
4346
},
4447
"dependencies": {
4548
"@octokit/rest": "^19.0.0",

0 commit comments

Comments
 (0)