Skip to content

Commit

Permalink
Adding checkstyle reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaland committed Nov 12, 2024
1 parent 875e303 commit a5e7938
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/reporting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,24 @@ jobs:
java-version: '21'
distribution: 'adopt'

- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Build and generate report
run: |
mvn clean install
mvn site
- name: Publish report
uses: actions/upload-artifact@v4
with:
name: Report
path: target/site

- name: Push Checkstyle results
uses: jwgmeligmeyling/checkstyle-github-action@master
with:
path: 'target/checkstyle-result.xml'

0 comments on commit a5e7938

Please sign in to comment.