when-am-i / files / .fw-ci.yml
.fw-ci.yml
e428ceb1 2026-03-20 Pavel Safronov | 1 | # The Docker image that will be used to build your app |
| 2 | image: node:lts | |
60741172 2026-06-17 Pavel Safronov | 3 | |
| 4 | stages: | |
| 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. | |
| 10 | test: | |
| 11 | stage: test | |
| 12 | script: | |
| 13 | - npm ci | |
30de6faf 2026-06-20 Pavel Safronov | 14 | - npm run validate:data |
60741172 2026-06-17 Pavel Safronov | 15 | - npm run lint |
| 16 | - npm run typecheck | |
| 17 | - npm test | |
6bcd5898 2026-06-19 Pavel Safronov | 18 | # 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 Safronov | 21 | |
e428ceb1 2026-03-20 Pavel Safronov | 22 | create-pages: |
60741172 2026-06-17 Pavel Safronov | 23 | stage: deploy |
e428ceb1 2026-03-20 Pavel Safronov | 24 | pages: |
| 25 | # The folder that contains the files to be exposed at the Page URL | |
e5831175 2026-03-20 Pavel Safronov | 26 | publish: dist |
e428ceb1 2026-03-20 Pavel Safronov | 27 | 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 Safronov | 32 | - npm ci |
e428ceb1 2026-03-20 Pavel Safronov | 33 | - npm run build |