Skip to content

Commit

Permalink
chore: use pnpm workspace (#291)
Browse files Browse the repository at this point in the history
* use central pnpm-lock

* infer pnpm version from package.json

* configure typescript workspace version

* remove pnpm version from more actions
  • Loading branch information
frontendphil authored Dec 10, 2024
1 parent e200ece commit 1009201
Show file tree
Hide file tree
Showing 22 changed files with 6,695 additions and 18,041 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CI

on:
on:
pull_request:
push:
branches:
Expand All @@ -10,13 +10,11 @@ jobs:
static_checks:
runs-on: ubuntu-latest
defaults:
run:
run:
working-directory: ./extension
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: latest
Expand All @@ -28,24 +26,22 @@ jobs:
unit_tests:
runs-on: ubuntu-latest
defaults:
run:
run:
working-directory: ./extension
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: latest
cache: "pnpm"
cache-dependency-path: "**/pnpm-lock.yaml"
- run: pnpm install --prefer-offline
- run: pnpm test:unit
- name: 'Report Coverage'
- name: "Report Coverage"
# Set if: always() to also generate the report if tests are failing
# Only works if you set `reportOnFailure: true` in your vite config as specified above
if: always()
uses: davelosert/vitest-coverage-report-action@v2
if: always()
uses: davelosert/vitest-coverage-report-action@v2
with:
working-directory: extension
2 changes: 0 additions & 2 deletions .github/workflows/fork-api-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v3
with:
node-version: latest
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: latest
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/prod-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@ jobs:
runs-on: ubuntu-latest
name: Build Extension
defaults:
run:
run:
working-directory: ./extension
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v3
with:
node-version: latest
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/vnet-api-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v3
with:
node-version: latest
Expand Down
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
**/.DS_Store

node_modules
build
dist
coverage

.env
*.log
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}
3 changes: 0 additions & 3 deletions example-app/.gitignore

This file was deleted.

Loading

0 comments on commit 1009201

Please sign in to comment.