mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 14:55:50 +00:00
Added a new feature
This commit is contained in:
parent
4240854d59
commit
9f753ce8f8
2 changed files with 11 additions and 28 deletions
37
.github/workflows/ci.yml
vendored
37
.github/workflows/ci.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: Java CI with Gradle
|
name: CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -11,29 +11,12 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- uses: actions/checkout@v3
|
||||||
uses: actions/checkout@v3
|
- name: Set up JDK 11
|
||||||
|
uses: actions/setup-java@v3
|
||||||
- name: Set up JDK 17
|
with:
|
||||||
uses: actions/setup-java@v3
|
java-version: '11'
|
||||||
with:
|
- name: Grant execute permission for gradlew
|
||||||
java-version: '17'
|
run: chmod +x gradlew
|
||||||
distribution: 'temurin' # Specify the Java distribution (AdoptOpenJDK)
|
- name: Build with Gradle
|
||||||
|
run: ./gradlew build
|
||||||
- name: Build with Gradle
|
|
||||||
run: ./gradlew build
|
|
||||||
|
|
||||||
- name: Run tests
|
|
||||||
run: ./gradlew test
|
|
||||||
|
|
||||||
- name: Upload test results
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: test-results
|
|
||||||
path: build/test-results/test
|
|
||||||
|
|
||||||
- name: Upload code coverage report
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: jacoco-report
|
|
||||||
path: build/reports/jacoco/test/html
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ import java.util.Locale;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PetClinic Spring Boot Application.
|
* PetClinic Spring Boot Application.
|
||||||
* PetClinic1
|
* PetClinic2
|
||||||
* @author Dave Syer
|
* @author Dave Syer
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue