@@ -26,21 +26,33 @@ jobs:
2626 - name : Checkout code
2727 uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2828
29- - name : Setup Node.js and pnpm
30- uses : ./.github/actions/setup-node-pnpm
29+ - name : Setup Node.js
30+ uses : actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6
31+ with :
32+ node-version : " lts/*"
33+ package-manager-cache : false
34+ check-latest : true
35+
36+ - name : Setup Vite+
37+ uses : voidzero-dev/setup-vite-plus-action@8e5c964eecdefb1a599d79ad0c4a00418e193e72 # v1
38+ with :
39+ cache : true
40+ registry : github
41+ github-token : ${{ secrets.GITHUB_TOKEN }}
3142
3243 - name : Install Playwright browsers
33- run : pnpm exec playwright install chromium
44+ run : npx playwright install chromium
3445
3546 - name : Check ready
3647 run : |
37- pnpm ready
48+ vite run ready
3849 # run again to check cache hits
39- pnpm ready
40- env :
41- VITE_LOG : ' trace'
50+ vite run ready
51+ # env:
52+ # VITE_LOG: 'trace'
4253
4354 - name : Check build artifacts
55+ if : ${{ matrix.os != 'windows-latest' }}
4456 run : |
4557 if [ -d "apps/dashboard/dist" ]; then
4658 echo "✅ Build artifacts created successfully"
4961 echo "❌ Build artifacts not found"
5062 exit 1
5163 fi
52-
53- global :
54- timeout-minutes : 15
55- permissions :
56- contents : read
57- packages : read
58-
59- strategy :
60- fail-fast : false
61- matrix :
62- os : [ubuntu-latest, macos-latest, windows-latest]
63-
64- runs-on : ${{ matrix.os }}
65-
66- steps :
67- - name : Checkout code
68- uses : actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
69-
70- - name : Setup Node.js and pnpm
71- uses : ./.github/actions/setup-node-pnpm
72-
73- - uses : actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
74- with :
75- node-version : ' lts/*'
76- registry-url : ' https://npm.pkg.github.com'
77- scope : ' @voidzero-dev'
78- package-manager-cache : false
79-
80- - run : npm install -g @voidzero-dev/global@latest
81- env :
82- NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
83-
84- - run : vite --version
85- - run : vite fmt -c .oxfmtrc.jsonc --check
86-
87- - run : vite lint -c .oxlintrc.json
88- env :
89- VITE_LOG : ' trace'
0 commit comments