source: josm/trunk/.github/workflows/spotbugs-analysis.yml

Last change on this file was 19505, checked in by stoecker, 5 weeks ago

typo

File size: 1.2 KB
RevLine 
[18053]1name: "Spotbugs"
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
[18993]17 uses: actions/checkout@v4
[18053]18 with:
19 fetch-depth: 256
20
[18056]21 - name: Cache
[18993]22 uses: actions/cache@v4
[18056]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
[19504]29 - name: Setup Java 21
[19505]30 uses: actions/setup-java@v4
31 with:
32 distribution: 'zulu'
33 java-version: 21
[19504]34
[18053]35 - name: Run Spotbugs with Ant
36 run: |
37 ant spotbugs
38
[18057]39 - name: Upload report
[18993]40 uses: actions/upload-artifact@v4
[18057]41 with:
42 path: spotbugs-josm.xml
43
[18064]44 # Disable step, always failing with error message
45 # TypeError: Cannot read property 'sourcepath' of undefined
46 # see https://github.com/jwgmeligmeyling/spotbugs-github-action/issues/15
47 #- uses: jwgmeligmeyling/spotbugs-github-action@master
48 # with:
49 # path: '**/spotbugs-josm.xml'
Note: See TracBrowser for help on using the repository browser.