mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 08:15:49 +00:00
add report code into .yml
This commit is contained in:
parent
49ae440d0a
commit
97a261903a
1 changed files with 39 additions and 10 deletions
29
.github/workflows/build.yml
vendored
29
.github/workflows/build.yml
vendored
|
@ -34,3 +34,32 @@ jobs:
|
|||
name: build-artifacts # Name for the uploaded artifacts
|
||||
path:
|
||||
target/ # Path to the build artifacts (typically 'target/' for Maven)
|
||||
|
||||
|
||||
# Static Code Analysis with Checkstyle
|
||||
- name: Static Code Analysis with Checkstyle
|
||||
run: |
|
||||
# Install and run Checkstyle
|
||||
mvn org.apache.maven.plugins:maven-checkstyle-plugin:3.1.1:checkstyle
|
||||
# Run Checkstyle
|
||||
mvn checkstyle:check
|
||||
|
||||
# Store static code analysis reports
|
||||
- name: Archive Static Code Analysis Reports
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: static-code-analysis-reports
|
||||
path: target/checkstyle-result.xml
|
||||
|
||||
# Code Coverage
|
||||
- name: Code Coverage
|
||||
run: |
|
||||
# Run JaCoCo report generation
|
||||
mvn jacoco:report
|
||||
|
||||
# Store code coverage reports
|
||||
- name: Archive Code Coverage Reports
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: code-coverage-reports
|
||||
path: target/site/jacoco/
|
||||
|
|
Loading…
Reference in a new issue