Skip to content

Commit

Permalink
feat: fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
hartym committed Mar 15, 2024
1 parent fe47ff6 commit 0721472
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ build:dev:
script:
- bash bin/sandbox make build-dev push-dev

test:
test:backend:
needs: [ "build:dev" ]
image: ${DOCKER_IMAGE}:${DOCKER_TAGS}-dev
stage: test
Expand All @@ -57,7 +57,18 @@ test:
PYTEST: /opt/venv/bin/pytest
PYTEST_OPTIONS: "-m 'not subprocess'"
script:
- (cd /opt/harp/src; poetry run make test)
- (cd /opt/harp/src; poetry run make test-backend)

test:frontend:
needs: [ "build:dev" ]
image: ${DOCKER_IMAGE}:${DOCKER_TAGS}-dev
stage: test
services:
- docker:24.0.6-dind
variables:
GIT_STRATEGY: none
script:
- (cd /opt/harp/src/frontend; pnpm test:unit)

doc:html:
needs: [ "build:dev" ]
Expand Down Expand Up @@ -92,7 +103,7 @@ storybook:

release:
image: docker:24.0.6
needs: [ "build:runtime", "test" ]
needs: [ "build:runtime", "test:backend", "test:frontend" ]
stage: release
only:
- main
Expand Down

0 comments on commit 0721472

Please sign in to comment.