Skip to content

Commit e2685a1

Browse files
authored
ci: fix failure jobs (#107)
1 parent 551008e commit e2685a1

File tree

11 files changed

+2570
-2193
lines changed

11 files changed

+2570
-2193
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.github/actions/setup-node-pnpm/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ runs:
1010
node-version: "lts/*"
1111
registry-url: "https://registry.npmjs.org"
1212
package-manager-cache: false
13+
check-latest: true
1314
# see pnpm cache setting below
1415
env:
1516
GITHUB_TOKEN: ${{ github.token }}

.github/workflows/ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions: {}
1010

1111
jobs:
1212
ci:
13-
timeout-minutes: 5
13+
timeout-minutes: 15
1414
permissions:
1515
contents: read
1616
packages: read
@@ -49,7 +49,7 @@ jobs:
4949
fi
5050
5151
global:
52-
timeout-minutes: 5
52+
timeout-minutes: 15
5353
permissions:
5454
contents: read
5555
packages: read
@@ -75,10 +75,11 @@ jobs:
7575
scope: '@voidzero-dev'
7676
package-manager-cache: false
7777

78-
- run: npm install -g @voidzero-dev/global
78+
- run: npm install -g @voidzero-dev/global@latest
7979
env:
8080
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
81-
81+
82+
- run: vite --version
8283
- run: vite fmt -c .oxfmtrc.jsonc --check
8384

84-
- run: vite lint -c oxlintrc.json
85+
- run: vite lint -c .oxlintrc.json

apps/dashboard/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929
"@types/react-dom": "^19.1.7",
3030
"@types/react-router-dom": "^5.3.3",
3131
"@types/semver": "^7.7.1",
32-
"@vitest/browser": "^4.0.4",
33-
"@vitest/browser-playwright": "^4.0.4",
34-
"@vitest/ui": "^4.0.4",
32+
"@vitest/browser": "^4.0.9",
33+
"@vitest/browser-playwright": "^4.0.9",
34+
"@vitest/ui": "^4.0.9",
3535
"playwright": "^1.55.0",
36-
"rolldown-vite": "^7.1.10",
36+
"vite": "catalog:",
3737
"tailwindcss": "^4.1.13",
3838
"typescript": "catalog:"
3939
}

apps/dashboard/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"files": [],
3+
"compilerOptions": {
4+
"composite": true,
5+
},
36
"references": [
47
{ "path": "./tsconfig.app.json" },
58
{ "path": "./tsconfig.node.json" },

apps/dashboard/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import tailwindcss from "@tailwindcss/vite";
2-
import { defineConfig } from "rolldown-vite";
2+
import { defineConfig } from "vite";
33

44
// https://vite.dev/config/
55
export default defineConfig({

apps/dashboard/vitest.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import tailwindcss from "@tailwindcss/vite";
2-
import { defineProject } from "vitest/config";
2+
import { defineConfig } from "vitest/config";
33
import { playwright } from "@vitest/browser-playwright";
44

5-
export default defineProject({
5+
export default defineConfig({
66
plugins: [tailwindcss()],
77
base: "/vibe-dashboard/",
88
test: {

package.json

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
"packageManager": "[email protected]",
77
"type": "module",
88
"scripts": {
9-
"ready": "vite fmt && vite run lint && vite test && vite run build",
9+
"ready": "vite fmt && vite lint --type-aware --threads 4 && vite test && vite run build",
1010
"dev": "pnpm --filter dashboard dev",
1111
"build": "vite run @vibe/dashboard#build",
12-
"lint": "vite lint --type-aware",
12+
"lint": "vite lint --type-aware --threads 4",
1313
"test": "vite test",
1414
"fmt": "vite fmt",
1515
"generate": "node tools/override-rolldown.mjs --stats"
@@ -20,16 +20,6 @@
2020
"dprint": "^0.50.2",
2121
"playwright": "^1.56.1",
2222
"top-github-dependents-by-stars": "^1.0.4",
23-
"vitest": "^4.0.8"
24-
},
25-
"pnpm": {
26-
"overrides": {
27-
"vite": "npm:[email protected]"
28-
},
29-
"onlyBuiltDependencies": [
30-
"@tailwindcss/oxide",
31-
"dprint",
32-
"esbuild"
33-
]
23+
"vitest": "^4.0.10"
3424
}
3525
}

0 commit comments

Comments
 (0)