This repository has no description
1when:
2 - event: push
3 branch: sv-fe
4 paths:
5 - web/**
6 - flake.nix
7 - flake.lock
8 - nix/pkgs/web-static-files.nix
9
10engine: microvm
11image: alpine
12
13environment:
14 SVELTE_ADAPTER: cloudflare
15 VITE_OAUTH_CLIENT_ID: https://next.tangled.org/oauth-client-metadata.json
16 VITE_OAUTH_REDIRECT_URI: https://next.tangled.org/oauth/callback
17
18steps:
19 - name: install nodejs, pnpm
20 command: apk add nodejs pnpm
21
22 - name: install web dependencies
23 command: |
24 cd web
25 pnpm install --frozen-lockfile
26
27 - name: sync web static assets
28 command: |
29 out=$(nix build .#web-static-files --no-link --print-out-paths)
30 mkdir -p web/static
31 rm -rf web/static/fonts web/static/logos
32 cp -fr "$out"/* web/static
33
34 - name: run web unit tests
35 command: |
36 cd web
37 pnpm run test:unit -- --run
38
39 - name: build web
40 command: |
41 cd web
42 pnpm run build
43
44 - name: deploy web dev worker
45 command: |
46 cd web
47 pnpm exec wrangler deploy --config wrangler.dev.jsonc