Monorepo for Tangled
tangled.org
1when:
2 - event: ["push", "pull_request"]
3 branch: master
4 paths:
5 - web/**
6 - flake.nix
7 - flake.lock
8 - nix/pkgs/web-static-files.nix
9
10engine: microvm
11image: nixos
12
13dependencies:
14 - nodejs
15
16steps:
17 - name: install web deps
18 command: |
19 cd web
20 corepack pnpm install --frozen-lockfile
21
22 - name: lint web
23 command: |
24 cd web
25 corepack pnpm run lint
26
27 - name: typecheck web
28 command: |
29 cd web
30 corepack pnpm run check
31
32 - name: test web
33 command: |
34 cd web
35 corepack pnpm run test:unit -- --run
36
37 - name: sync web static assets
38 command: |
39 out=$(nix build .#web-static-files --no-link --print-out-paths)
40 mkdir -p web/static
41 rm -rf web/static/fonts web/static/logos
42 cp -fr --no-preserve=ownership,mode "$out"/* web/static
43
44 - name: build web
45 command: |
46 cd web
47 corepack pnpm run build