gitlab-ci: run tests in CI, not build (always before deploy)

This commit is contained in:
Alex Gleason 2025-07-13 17:33:00 -05:00
parent 5a5c05c1d4
commit 3b48df1093
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

View File

@ -5,16 +5,13 @@ default:
timeout: 1 minute timeout: 1 minute
stages: stages:
- build - test
- deploy - deploy
build: test:
stage: build stage: test
script: script:
- npm run build - npm run test
only:
variables:
- $CI_DEFAULT_BRANCH != $CI_COMMIT_REF_NAME
pages: pages:
stage: deploy stage: deploy