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
29
.github/workflows/ci.yml
vendored
29
.github/workflows/ci.yml
vendored
|
@ -1,4 +1,4 @@
|
|||
name: Java CI with Gradle
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
|
@ -11,29 +11,12 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up JDK 17
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up JDK 11
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'temurin' # Specify the Java distribution (AdoptOpenJDK)
|
||||
|
||||
java-version: '11'
|
||||
- name: Grant execute permission for gradlew
|
||||
run: chmod +x gradlew
|
||||
- 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.
|
||||
* PetClinic1
|
||||
* PetClinic2
|
||||
* @author Dave Syer
|
||||
*
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue