Add GitHub Actions workflow for CI

This commit is contained in:
Aiman 2024-11-25 15:18:36 +05:00
parent d8144c4250
commit 22639fac86

28
.github/workflows/ci-pipeline.yml vendored Normal file
View file

@ -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