mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 06:45:50 +00:00
Add GitHub Actions workflow for CI
This commit is contained in:
parent
d8144c4250
commit
22639fac86
1 changed files with 28 additions and 0 deletions
28
.github/workflows/ci-pipeline.yml
vendored
Normal file
28
.github/workflows/ci-pipeline.yml
vendored
Normal 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
|
Loading…
Reference in a new issue