mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 14:55:50 +00:00
ci.yml changes
This commit is contained in:
parent
d0fc93cd40
commit
9a5d7f7977
1 changed files with 9 additions and 8 deletions
15
.github/workflows/ci.yml
vendored
15
.github/workflows/ci.yml
vendored
|
@ -2,9 +2,9 @@ name: CI Pipeline
|
|||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
@ -20,11 +20,14 @@ jobs:
|
|||
distribution: 'adopt'
|
||||
java-version: '17'
|
||||
|
||||
- name: Install Dependencies
|
||||
run: mvn dependency:resolve
|
||||
|
||||
- name: Build with Maven
|
||||
run: mvn clean install
|
||||
|
||||
- name: Run Unit Tests
|
||||
run: mvn test
|
||||
- name: Run Unit Tests and Generate Coverage
|
||||
run: mvn test jacoco:report
|
||||
|
||||
- name: Upload Build Artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
|
@ -38,11 +41,9 @@ jobs:
|
|||
name: test-reports
|
||||
path: target/surefire-reports/**
|
||||
|
||||
- name: Generate Code Coverage Report
|
||||
run: mvn jacoco:report
|
||||
|
||||
- name: Upload Code Coverage Report
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: code-coverage-report
|
||||
path: target/site/jacoco/**
|
||||
|
||||
|
|
Loading…
Reference in a new issue