diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aeea10bf1..fd4407491 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/src/main/java/org/springframework/samples/petclinic/PetClinicApplication.java b/src/main/java/org/springframework/samples/petclinic/PetClinicApplication.java index 187965505..e04e93aba 100644 --- a/src/main/java/org/springframework/samples/petclinic/PetClinicApplication.java +++ b/src/main/java/org/springframework/samples/petclinic/PetClinicApplication.java @@ -26,7 +26,7 @@ import java.util.Locale; /** * PetClinic Spring Boot Application. - * PetClinic1 + * PetClinic2 * @author Dave Syer * */