From 4c0a814201b4c8a2790f1d4c477f762176154ecd Mon Sep 17 00:00:00 2001 From: SunkePranayTR Date: Sun, 1 Feb 2026 18:34:58 +0530 Subject: [PATCH] Create maven-publish.yml Signed-off-by: SunkePranayTR --- .github/workflows/maven-publish.yml | 69 +++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 .github/workflows/maven-publish.yml diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml new file mode 100644 index 000000000..4c0cfbba2 --- /dev/null +++ b/.github/workflows/maven-publish.yml @@ -0,0 +1,69 @@ +name: CI - Build & Test (PetClinic) + +on: + + push: + + branches: ["main"] + + pull_request: + + branches: ["main"] + + workflow_dispatch: + +jobs: + + build-test: + + runs-on: ubuntu-latest + + steps: + + - name: checkout source code + + uses: actions/checkout@v6 + + - name: setup java17 + + uses: actions/setup-java@v5 + + with: + + distribution: temurin + + java-version: "17" + + cache: maven + + - name: show versions + + run: | + + java -version + + ./mvnw -version + + - name: build + + run: ./mvnw clean package + + - name: run test + + run: ./mvnw -B test + + - name: upload artifacts + + if: always() + + uses: actions/upload-artifact@v4 + + with: + + name: testreport1 + + path: target/surefire-reports + + + +