diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7f9297890e2074206fff54df1952f1cb331a89dd..a1f7b0aee60c9785d9c1d4e76039692237e413b5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -15,17 +15,14 @@ build-backend: # This job runs in the build stage, which runs first. - mvn compile -test-backend: # This job runs in the test stage. - stage: test # It only starts when the job in the build stage completes successfully. +test-backend: + stage: test image: maven:3.9.4-eclipse-temurin-21 services: - - docker:latest - - docker:dind + - docker/compose:latest before_script: - - docker version - - docker compose version - echo 'Run docker compose' - - docker compose up -d + - docker-compose up -d script: - echo 'Running unit tests...' - cd ./sth-backend