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 - .tangled/workflows/deploy-web-dev.yml
10
11engine: microvm
12image: alpine
13
14environment:
15 SVELTE_ADAPTER: cloudflare
16 VITE_OAUTH_CLIENT_ID: https://next.tangled.org/oauth-client-metadata.json
17 VITE_OAUTH_REDIRECT_URI: https://next.tangled.org/oauth/callback
18
19steps:
20 - name: install nodejs, pnpm
21 command: apk add nodejs pnpm
22
23 - name: install web dependencies
24 command: |
25 cd web
26 pnpm install --frozen-lockfile
27
28 - name: sync web static assets
29 command: |
30 out=$(nix build .#web-static-files --no-link --print-out-paths)
31 mkdir -p web/static
32 rm -rf web/static/fonts web/static/logos
33 cp -fr "$out"/* web/static
34
35 - name: run web unit tests
36 command: |
37 cd web
38 pnpm run test:unit -- --run
39
40 - name: build and deploy web dev worker
41 command: |
42 cd web
43 CLOUDFLARE_API_TOKEN=$CLOUDFLARE_WORKER_DEPLOY_TOKEN pnpm run deploy:cloudflare-dev