diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 30d74d2..f09fc72 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -1 +1,22 @@ -test \ No newline at end of file +stages: + - build + - test + +build-job: + stage: build + script: + - echo "Compiling the code..." + - mvn clean package + - echo "Compile complete." + artifacts: + paths: + - target + +test-job: + stage: test + dependencies: + - build-job + script: + - ls -al + - echo "Running tests" + - java -cp target/helloworld-1.1.jar com.coveros.demo.helloworld.HelloWorld \ No newline at end of file