Skip to content

Commit

Permalink
ci: upgrade pnpm to v8
Browse files Browse the repository at this point in the history
  • Loading branch information
dangreen committed Sep 12, 2023
1 parent 9fc7979 commit c922774
Show file tree
Hide file tree
Showing 7 changed files with 1,410 additions and 3,876 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7
version: 8
- name: Install Node.js
uses: actions/setup-node@v3
with:
Expand All @@ -36,7 +36,7 @@ jobs:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Check editorconfig
uses: editorconfig-checker/action-editorconfig-checker@v1
uses: editorconfig-checker/action-editorconfig-checker@main
package-json:
runs-on: ubuntu-latest
name: package.json
Expand All @@ -46,7 +46,7 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7
version: 8
- name: Install Node.js
uses: actions/setup-node@v3
with:
Expand Down
25 changes: 21 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,33 @@ on:
branches:
- main
jobs:
list-packages:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- id: set-matrix
run: node -e "console.log('::set-output name=matrix::' + JSON.stringify(fs.readdirSync('packages')))"
test:
runs-on: ubuntu-latest
name: Tests
needs: list-packages
strategy:
matrix:
package: ${{ fromJson(needs.list-packages.outputs.matrix) }}
name: ${{ matrix.package }} tests
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7
version: 8
- name: Install Node.js
uses: actions/setup-node@v3
with:
Expand All @@ -23,10 +40,10 @@ jobs:
- name: Install dependencies
run: pnpm install
- name: Run tests
run: pnpm test
run: pnpm test packages/${{ matrix.package }}
- name: Collect coverage
uses: codecov/codecov-action@v3
if: success()
with:
flags: ${{ matrix.package }}
files: ./coverage/lcov.info
fail_ci_if_error: true
2 changes: 1 addition & 1 deletion .github/workflows/commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7
version: 8
- name: Install Node.js
uses: actions/setup-node@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7
version: 8
- name: Install Node.js
uses: actions/setup-node@v3
with:
Expand Down
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,16 @@
"devDependencies": {
"@commitlint/cli": "^17.0.0",
"@commitlint/config-conventional": "^17.0.0",
"@commitlint/config-pnpm-scopes": "^17.3.0",
"@commitlint/config-pnpm-scopes": "^17.5.0",
"@commitlint/cz-commitlint": "^17.0.0",
"@pnpm/find-workspace-packages": "^5.0.10",
"@pnpm/logger": "^5.0.0",
"@rollup/plugin-node-resolve": "^15.0.1",
"@size-limit/file": "^8.0.0",
"@swc/core": "^1.3.20",
"@trigen/browserslist-config": "8.0.0-alpha.23",
"@trigen/eslint-config": "8.0.0-alpha.23",
"@trigen/scripts": "8.0.0-alpha.23",
"@types/node": "^18.0.0",
"@vitest/coverage-c8": "^0.26.0",
"@vitest/coverage-v8": "^0.34.4",
"browserslist": "^4.21.4",
"clean-publish": "^4.0.1",
"commitizen": "^4.2.4",
Expand All @@ -60,6 +58,6 @@
"standard-version": "^9.3.2",
"typescript": "^4.9.3",
"vite": "^4.0.0",
"vitest": "^0.26.0"
"vitest": "^0.34.4"
}
}
Loading

0 comments on commit c922774

Please sign in to comment.