66 pull_request :
77 branches : [main, develop]
88
9- # Cancel in-progress runs when a new run is triggered
109concurrency :
1110 group : ${{ github.workflow }}-${{ github.ref }}
1211 cancel-in-progress : true
1312
1413jobs :
15- lint :
16- name : Lint
17- runs-on : ubuntu-latest
18- permissions :
19- contents : read
20-
21- steps :
22- - name : Checkout code
23- uses : actions/checkout@v4
24-
25- - name : Setup Bun
26- uses : oven-sh/setup-bun@v2
27- with :
28- bun-version : latest
29-
30- - name : Install backend dependencies
31- working-directory : ./backend
32- run : bun install
33-
34- - name : Install frontend dependencies
35- working-directory : ./frontend
36- run : bun install
37-
38- - name : Run Biome format check (backend)
39- working-directory : ./backend
40- run : bun run format:check
41-
42- - name : Run Biome lint (backend)
43- working-directory : ./backend
44- run : bun run lint
45-
46- - name : Run Biome format check (frontend)
47- working-directory : ./frontend
48- run : bun run format:check
49-
50- - name : Run Biome lint (frontend)
51- working-directory : ./frontend
52- run : bun run lint
53-
54- backend :
55- name : Backend
14+ ci :
15+ name : Basic Checks
5616 runs-on : ubuntu-latest
5717 permissions :
5818 contents : read
@@ -75,54 +35,22 @@ jobs:
7535 working-directory : ./backend
7636 run : bun install
7737
78- - name : Run backend tests
38+ - name : Lint backend
7939 working-directory : ./backend
80- run : encore test
81-
82- frontend :
83- name : Frontend
84- runs-on : ubuntu-latest
85- permissions :
86- contents : read
87-
88- steps :
89- - name : Checkout code
90- uses : actions/checkout@v4
40+ run : bun run lint
9141
92- - name : Setup Bun
93- uses : oven-sh/setup-bun@v2
94- with :
95- bun-version : latest
42+ - name : Test backend
43+ working-directory : ./backend
44+ run : encore test
9645
9746 - name : Install frontend dependencies
9847 working-directory : ./frontend
9948 run : bun install
10049
101- - name : Run Svelte type check
50+ - name : Lint frontend
10251 working-directory : ./frontend
103- run : bun run check
52+ run : bun run lint
10453
105- - name : Build frontend
54+ - name : Check frontend types
10655 working-directory : ./frontend
107- run : bun run build
108- env :
109- # Use a placeholder for build-time API URL
110- PUBLIC_API_BASE : https://api.example.com
111-
112- status :
113- name : CI Status
114- runs-on : ubuntu-latest
115- needs : [lint, backend, frontend]
116- if : always()
117- permissions : {}
118-
119- steps :
120- - name : Check job results
121- run : |
122- if [[ "${{ needs.lint.result }}" == "failure" ]] || \
123- [[ "${{ needs.backend.result }}" == "failure" ]] || \
124- [[ "${{ needs.frontend.result }}" == "failure" ]]; then
125- echo "One or more CI jobs failed"
126- exit 1
127- fi
128- echo "All CI jobs passed"
56+ run : bun run check
0 commit comments