fuzzyworld

when-am-i / files / .fw-ci.yml

.fw-ci.yml

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

e428ceb1 2026-03-20 Pavel Safronov1# The Docker image that will be used to build your app
2image: node:lts
60741172 2026-06-17 Pavel Safronov3
4stages:
5 - test
6 - deploy
7
8# Lint, type-check and unit-test on every pipeline. A failure here blocks the
9# deploy stage, so broken code can never reach GitLab Pages.
10test:
11 stage: test
12 script:
13 - npm ci
30de6faf 2026-06-20 Pavel Safronov14 - npm run validate:data
60741172 2026-06-17 Pavel Safronov15 - npm run lint
16 - npm run typecheck
17 - npm test
6bcd5898 2026-06-19 Pavel Safronov18 # Fail if the README badge block is out of sync with the repo (run
19 # `npm run gen:badges` and commit the result to fix).
20 - npm run gen:badges -- --check
60741172 2026-06-17 Pavel Safronov21
e428ceb1 2026-03-20 Pavel Safronov22create-pages:
60741172 2026-06-17 Pavel Safronov23 stage: deploy
e428ceb1 2026-03-20 Pavel Safronov24 pages:
25 # The folder that contains the files to be exposed at the Page URL
e5831175 2026-03-20 Pavel Safronov26 publish: dist
e428ceb1 2026-03-20 Pavel Safronov27 rules:
28 # This ensures that only pushes to the default branch will trigger
29 # a pages deploy
30 - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
31 script:
60741172 2026-06-17 Pavel Safronov32 - npm ci
e428ceb1 2026-03-20 Pavel Safronov33 - npm run build