mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2025-08-26 20:49:22 +00:00
gitlab-ci: run tests in CI, not build (always before deploy)
This commit is contained in:
parent
5a5c05c1d4
commit
3b48df1093
@ -5,16 +5,13 @@ default:
|
||||
timeout: 1 minute
|
||||
|
||||
stages:
|
||||
- build
|
||||
- test
|
||||
- deploy
|
||||
|
||||
build:
|
||||
stage: build
|
||||
test:
|
||||
stage: test
|
||||
script:
|
||||
- npm run build
|
||||
only:
|
||||
variables:
|
||||
- $CI_DEFAULT_BRANCH != $CI_COMMIT_REF_NAME
|
||||
- npm run test
|
||||
|
||||
pages:
|
||||
stage: deploy
|
||||
|
Loading…
x
Reference in New Issue
Block a user