source: josm/trunk/.github/workflows/pmd-analysis.yml@ 18057

Last change on this file since 18057 was 18057, checked in by Don-vip, 3 years ago

GitHub Actions : upload static analyses reports as artifacts

File size: 827 bytes
RevLine 
[18053]1name: "PMD"
2
3on:
4 push:
5 branches: [ master ]
6 pull_request:
7 # The branches below must be a subset of the branches above
8 branches: [ master ]
9
10jobs:
11 analyze:
12 name: Analyze
13 runs-on: ubuntu-latest
14
15 steps:
16 - name: Checkout repository
17 uses: actions/checkout@v2
18 with:
19 fetch-depth: 256
20
[18056]21 - name: Cache
22 uses: actions/cache@v2.0.0
23 with:
24 path: |
25 ~/.ivy2/cache/
26 ~/work/josm/josm/tools/
27 key: ${{ runner.os }}-ivy2-${{ hashFiles('build.xml', 'ivy.xml', 'tools/ivy.xml') }}
28
[18053]29 - name: Run PMD with Ant
30 run: |
31 ant pmd
32
[18057]33 - name: Upload report
34 uses: actions/upload-artifact@v2
35 with:
36 path: pmd-josm.xml
37
[18053]38 - uses: jwgmeligmeyling/pmd-github-action@master
39 with:
40 path: '**/pmd-josm.xml'
Note: See TracBrowser for help on using the repository browser.