add separate build step

This commit is contained in:
Hazelnoot 2025-09-24 11:28:24 -04:00
parent e352c364ef
commit d6a76a9fe6

View file

@ -1,9 +1,10 @@
stages:
- build
- test
- deploy
.test_common: &test_common
stage: test
.build_common: &build_common
stage: build
image: docker.io/node:22
variables:
POSTGRES_PASSWORD: ci
@ -18,7 +19,7 @@ stages:
- git submodule update --init
- pnpm install --frozen-lockfile
cache:
key: test
key: build
policy: pull-push
when: on_success
paths:
@ -29,6 +30,17 @@ stages:
- merge_requests
- stable
build:
<<: *build_common
script:
- pnpm run build
.test_common: &test_common
<<: *build_common
stage: test
cache:
key: test
lint:
<<: *test_common
script:
@ -150,6 +162,7 @@ include:
variables:
# https://docs.gitlab.com/user/application_security/sast/gitlab_advanced_sast
GITLAB_ADVANCED_SAST_ENABLED: 'true'
SEARCH_MAX_DEPTH: 32
# https://docs.gitlab.com/user/application_security/sast/#vulnerability-filters
# https://stackoverflow.com/a/71111784