fuzzyworld

explodorama / files / .fw-ci.yml

.fw-ci.yml

Blame: the commit that last changed each line · file · history

5551eb37 2026-10-20 Pavel Safronov1image: node:22
2
3stages: [test, deploy]
4
5test:
6 stage: test
7 script:
8 - npm ci
9 - npm test
10 - npm run build
11
12pages:
13 stage: deploy
14 script:
15 - npm ci
16 - npm run build
17 # GitLab Pages requires the artifact to be a directory named `public`. There is no
18 # `public/` in the repository (vite.config.ts), so this is a rename, not a nest.
19 - mv dist public
20 # Fail loudly rather than publishing a 404.
21 - test -f public/index.html || (echo "no index.html at artifact root" && exit 1)
22 artifacts:
23 paths: [public]
24 rules:
25 - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH