Fixed CI
This commit is contained in:
parent
42ddbaea33
commit
1f714b5b50
@ -24,6 +24,10 @@ before_script:
|
|||||||
- yarn install --cache-folder .yarn --frozen-lockfile
|
- yarn install --cache-folder .yarn --frozen-lockfile
|
||||||
- cd ..
|
- cd ..
|
||||||
|
|
||||||
|
.dto_artifacts_need: &dto_artifacts_need
|
||||||
|
job: test_build_dto
|
||||||
|
artifacts: true
|
||||||
|
|
||||||
test_build_dto:
|
test_build_dto:
|
||||||
stage: setup
|
stage: setup
|
||||||
cache:
|
cache:
|
||||||
@ -41,16 +45,21 @@ test_build_dto:
|
|||||||
- cd frontend
|
- cd frontend
|
||||||
- yarn install --cache-folder .yarn --frozen-lockfile
|
- yarn install --cache-folder .yarn --frozen-lockfile
|
||||||
- yarn add ../dto
|
- yarn add ../dto
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- dto/lib/
|
||||||
|
|
||||||
|
|
||||||
test_backend:
|
test_backend:
|
||||||
needs: ["test_build_dto"]
|
needs:
|
||||||
|
- *dto_artifacts_need
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- yarn lint
|
- yarn lint
|
||||||
|
|
||||||
test_frontend:
|
test_frontend:
|
||||||
needs: ["test_build_dto"]
|
needs:
|
||||||
|
- *dto_artifacts_need
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- cd frontend
|
- cd frontend
|
||||||
@ -59,6 +68,7 @@ test_frontend:
|
|||||||
build_backend:
|
build_backend:
|
||||||
stage: build
|
stage: build
|
||||||
needs:
|
needs:
|
||||||
|
- *dto_artifacts_need
|
||||||
- job: test_backend
|
- job: test_backend
|
||||||
artifacts: false
|
artifacts: false
|
||||||
script:
|
script:
|
||||||
@ -71,6 +81,7 @@ build_backend:
|
|||||||
build_frontend:
|
build_frontend:
|
||||||
stage: build
|
stage: build
|
||||||
needs:
|
needs:
|
||||||
|
- *dto_artifacts_need
|
||||||
- job: test_frontend
|
- job: test_frontend
|
||||||
artifacts: false
|
artifacts: false
|
||||||
script:
|
script:
|
||||||
|
Loading…
Reference in New Issue
Block a user