diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 87060592d425bc3c3ae81f250b37afc59b9e992f..22e97e2d3ca5100c9eeed182873ef1ceb05be013 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,12 +18,11 @@ build-backend: # This job runs in the build stage, which runs first. test-backend: # This job runs in the test stage. stage: test # It only starts when the job in the build stage completes successfully. image: maven:3.9.4-eclipse-temurin-21 - before_script: - - apt-get update -qy - - apt-get install -y docker - - echo 'Starting Docker Container' - - /usr/bin/docker-compose up -d + services: + - docker/compose:latest script: + - echo 'Run docker compose' + - docker compose up -d - echo 'Running unit tests...' - cd ./sth-backend - mvn test