Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 9 additions & 17 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,31 +17,27 @@ jobs:
- name: Checkout repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6

- name: Set up Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
with:
node-version: '24'

- name: Setup Vite+
uses: voidzero-dev/setup-vite-plus-action@v1
with:
node-version: '24'
cache: true
run-install: true

- name: Run lint
run: vite run lint
run: vp run lint

- name: Check dedupe
run: vite dedupe --check
run: vp dedupe --check

- name: Run typecheck
run: vite run typecheck
run: vp run typecheck

- name: Run format check
run: vite run fmtcheck
run: vp run fmtcheck

- name: Run build check
run: vite run build
run: vp run build

test:
strategy:
Expand All @@ -64,22 +60,18 @@ jobs:
- name: Checkout repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6

- name: Set up Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
with:
node-version: ${{ matrix.node }}

- name: Setup Vite+
uses: voidzero-dev/setup-vite-plus-action@v1
with:
node-version: ${{ matrix.node }}
cache: true
run-install: true

- name: Run lint
run: vite run lint
run: vp run lint

- name: Run tests
run: vite run ci
run: vp run ci

- name: Code Coverage
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/pkg.pr.new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,14 @@ jobs:
- name: Checkout code
uses: actions/checkout@v6

- run: corepack enable
- uses: actions/setup-node@v6
with:
node-version: 22

- name: Setup Vite+
uses: voidzero-dev/setup-vite-plus-action@v1
with:
node-version: 22
cache: true
run-install: true

- name: Build
run: vite run build
run: vp run build

- run: vite dlx pkg-pr-new publish
- run: vp dlx pkg-pr-new publish
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@
"form-data": "^4.0.5",
"formstream": "^1.5.2",
"mime-types": "^2.1.35",
"qs": "^6.14.1",
"qs": "^6.15.0",
"type-fest": "^4.41.0",
"undici": "^7.19.0",
"undici": "^7.22.0",
"ylru": "^2.0.0"
},
"devDependencies": {
Expand All @@ -86,7 +86,7 @@
"@eggjs/tsconfig": "^2.0.0",
"@types/busboy": "^1.5.4",
"@types/mime-types": "^2.1.4",
"@types/node": "^22.19.7",
"@types/node": "^22.19.11",
"@types/proxy": "^1.0.4",
"@types/qs": "^6.14.0",
"@types/selfsigned": "^2.1.0",
Expand All @@ -103,11 +103,11 @@
"selfsigned": "^3.0.1",
"string.prototype.towellformed": "^1.0.2",
"tar-stream": "^2.2.0",
"tshy": "^3.1.0",
"tshy": "^3.3.2",
"tshy-after": "^1.4.1",
"typescript": "^5.9.3",
"vite-plus": "latest",
"vitest": "npm:@voidzero-dev/vite-plus-test@latest"
"vitest": "npm:@voidzero-dev/vite-plus-test@0.0.0-b1666489.20260220-0254"
Comment thread
fengmk2 marked this conversation as resolved.
Outdated
},
"overrides": {
"vite": "npm:@voidzero-dev/vite-plus-core@latest",
Expand Down
Loading
Loading