From 66f449f8b1c7075a74e4b82b780a2a71257704b4 Mon Sep 17 00:00:00 2001 From: gitea_admin Date: Tue, 2 Sep 2025 23:53:46 +0000 Subject: [PATCH] Update .gitea/workflows/test.yaml --- .gitea/workflows/test.yaml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) 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