Added a new feature

This commit is contained in:
Nerosshini 2024-09-07 01:40:39 +08:00
parent 4240854d59
commit 9f753ce8f8
2 changed files with 11 additions and 28 deletions

View file

@ -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/setup-java@v3
with:
java-version: '17'
distribution: 'temurin' # Specify the Java distribution (AdoptOpenJDK)
- 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
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build

View file

@ -26,7 +26,7 @@ import java.util.Locale;
/**
* PetClinic Spring Boot Application.
* PetClinic1
* PetClinic2
* @author Dave Syer
*
*/