mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 14:55:50 +00:00
changes ci.yml
This commit is contained in:
parent
509df7308b
commit
42c8981656
1 changed files with 7 additions and 4 deletions
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
|
@ -19,10 +19,13 @@ jobs:
|
||||||
with:
|
with:
|
||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: mvn dependency:resolve
|
||||||
|
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn clean install
|
run: mvn clean install
|
||||||
|
|
||||||
- name: Upload Build Artifacts
|
- name: Upload Build Artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
@ -32,15 +35,15 @@ jobs:
|
||||||
- name: Run Unit Tests
|
- name: Run Unit Tests
|
||||||
run: mvn test
|
run: mvn test
|
||||||
|
|
||||||
|
- name: Run Unit Tests and Generate Coverage
|
||||||
|
run: mvn test jacoco:report
|
||||||
|
|
||||||
- name: Upload Test Reports
|
- name: Upload Test Reports
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: test-reports
|
name: test-reports
|
||||||
path: target/surefire-reports/**
|
path: target/surefire-reports/**
|
||||||
|
|
||||||
- name: Generate Code Coverage Report
|
|
||||||
run: mvn jacoco:report
|
|
||||||
|
|
||||||
- name: Upload Code Coverage Report
|
- name: Upload Code Coverage Report
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue