From 5d7ebc578394ec17e85e7575d782424f20d47fcc Mon Sep 17 00:00:00 2001
From: jez04 <david.jezek@vsb.cz>
Date: Wed, 4 Oct 2023 22:24:42 +0000
Subject: [PATCH] Update .gitlab-ci.yml file

---
 .gitlab-ci.yml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8d8307d..05ccb08 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -25,12 +25,14 @@ build-job:       # This job runs in the build stage, which runs first.
   stage: build
   script:
     - echo "Compiling the code..."
+    - mvn compile
     - echo "Compile complete."
 
 unit-test-job:   # This job runs in the test stage.
   stage: test    # It only starts when the job in the build stage completes successfully.
   script:
     - echo "Running unit tests... This will take about 60 seconds."
+    - mvn test
     - echo "Code coverage is 90%"
 
 lint-test-job:   # This job also runs in the test stage.
@@ -44,4 +46,5 @@ deploy-job:      # This job runs in the deploy stage.
   environment: production
   script:
     - echo "Deploying application..."
+    - mvn deploy
     - echo "Application successfully deployed."
-- 
GitLab