From 22639fac8613e5fabefacab153c887b5d42d6169 Mon Sep 17 00:00:00 2001 From: Aiman Date: Mon, 25 Nov 2024 15:18:36 +0500 Subject: [PATCH] Add GitHub Actions workflow for CI --- .github/workflows/ci-pipeline.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/ci-pipeline.yml diff --git a/.github/workflows/ci-pipeline.yml b/.github/workflows/ci-pipeline.yml new file mode 100644 index 000000000..4c11c7dfc --- /dev/null +++ b/.github/workflows/ci-pipeline.yml @@ -0,0 +1,28 @@ +name: CI Pipeline for Spring Petclinic + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: self-hosted + steps: + # Checkout code + - name: Checkout code + uses: actions/checkout@v3 + + # Set up JDK + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + + # Build with Maven + - name: Build and test with Maven + run: mvn clean install