mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-06 08:47:23 +00:00
gitlab-ci: run tests in CI, not build (always before deploy)
This commit is contained in:
1 file changed
+4
-7
+4
-7
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user