File tree Expand file tree Collapse file tree 1 file changed +13
-37
lines changed
Expand file tree Collapse file tree 1 file changed +13
-37
lines changed Original file line number Diff line number Diff line change 1- name : Build and verify
1+ name : Build and verify backend
22
33on :
44 push :
77 pull_request :
88
99jobs :
10- frontend :
11- name : Frontend build
12- runs-on : ubuntu-latest
13- env :
14- CI : true
15- PUBLIC_BACKEND_API_URL : https://localhost:3000
16- defaults :
17- run :
18- working-directory : frontend
19- steps :
20- - name : Checkout repository
21- uses : actions/checkout@v4
22-
23- - name : Setup Node.js
24- uses : actions/setup-node@v4
25- with :
26- node-version : 22
27- cache : npm
28- cache-dependency-path : frontend/package-lock.json
29-
30- - name : Install dependencies
31- run : npm ci
32-
33- - name : Build SvelteKit app
34- run : npm run build
35-
36- - name : Upload build artifacts
37- if : always()
38- uses : actions/upload-artifact@v4
39- with :
40- name : frontend-build
41- path : frontend/.svelte-kit/cloudflare
42-
4310 backend :
4411 name : Backend check
4512 runs-on : ubuntu-latest
@@ -50,11 +17,20 @@ jobs:
5017 - name : Checkout repository
5118 uses : actions/checkout@v4
5219
20+ - name : Cache cargo directories
21+ uses : actions/cache@v4
22+ with :
23+ path : |
24+ ~/.cargo/bin
25+ ~/.cargo/registry
26+ ~/.cargo/git
27+ target
28+ key : ${{ runner.os }}-cargo-${{ hashFiles('rustytime/Cargo.lock') }}
29+ restore-keys : |
30+ ${{ runner.os }}-cargo-
31+
5332 - name : Setup Rust toolchain
5433 uses : dtolnay/rust-toolchain@stable
5534
56- - name : Cache cargo directories
57- uses : Swatinem/rust-cache@v2
58-
5935 - name : Cargo check
6036 run : cargo check --all-targets
You can’t perform that action at this time.
0 commit comments