Skip to content

Commit de3a040

Browse files
committed
integrated pmd into CI (#646)
1 parent b263cf3 commit de3a040

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/pmd.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: PMD Analysis
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
jobs:
6+
pmd:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-java@v4
11+
with:
12+
distribution: 'temurin'
13+
java-version: '11'
14+
- uses: pmd/pmd-github-action@v2
15+
id: pmd
16+
with:
17+
rulesets: 'ruleset.xml'
18+
analyzeModifiedFilesOnly: true
19+
createGitHubAnnotations: false
20+
uploadSarifReport: true
21+

0 commit comments

Comments
 (0)