77
88on :
99 schedule :
10- - cron : ' 0 0 * * 0' # Runs every Sunday at midnight
11- workflow_dispatch : # Allows manual triggering
10+ - cron : " 0 0 * * 0" # Runs every Sunday at midnight
11+ workflow_dispatch : # Allows manual triggering
1212
1313jobs :
1414 build-and-deploy :
@@ -20,47 +20,41 @@ jobs:
2020 contents : write
2121
2222 steps :
23- - name : Checkout Repository
24- uses : actions/checkout@v4
25- with :
26- repository : eelab-dev/EEcircuit
27- ref : next # Checkout the "next" branch
23+ - name : Checkout Repository
24+ uses : actions/checkout@v4
25+ with :
26+ repository : eelab-dev/EEcircuit
27+ ref : next # Checkout the "next" branch
2828
29+ - name : Update Dependencies
30+ run : npx --yes npm-check-updates -u
2931
30- - name : Update Dependencies
31- run : npx --yes npm-check-updates -u
32-
33- - name : Install Dependencies
34- run : npm install
32+ - name : Install Dependencies
33+ run : npm install
3534
36- - name : Update engine to next version
37- run : npm install eecircuit-engine@next
38-
39- - name : Build Project with Vite
40- run : npm run build
35+ - name : Update engine to next version
36+ run : npm install eecircuit-engine@next
4137
42- - name : Deploy to Vercel
43- run : npx vercel --token=${{ secrets.VERCEL_TOKEN }}
38+ - name : Build Project with Vite
39+ run : npm run build
4440
45- - name : Install Playwright Browsers
46- run : npx playwright install --with-deps
47-
48- - name : Run Playwright tests
49- run : npx playwright test -g "EEcircuit Next"
50-
51- - uses : actions/upload-artifact@v4
52- if : always()
53- with :
54- name : playwright-report
55- path : playwright-report/
56- retention-days : 30
57-
41+ - name : Deploy to Vercel
42+ run : npx vercel --token=${{ secrets.VERCEL_TOKEN }}
5843
59- # auto commit
60- - uses : stefanzweifel/git-auto-commit-action@v5
61- with :
62- commit_message : Auto updates after tests
44+ - name : Install Playwright Browsers
45+ run : npx playwright install --with-deps
6346
47+ - name : Run Playwright tests
48+ run : npx playwright test -g "EEcircuit Next"
6449
65-
50+ - uses : actions/upload-artifact@v4
51+ if : always()
52+ with :
53+ name : playwright-report
54+ path : playwright-report/
55+ retention-days : 30
6656
57+ # auto commit
58+ - uses : stefanzweifel/git-auto-commit-action@v5
59+ with :
60+ commit_message : Auto updates after tests
0 commit comments