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

Last change on this file was 18064, checked in by Don-vip, 2 months ago

GitHub Actions : disable step jwgmeligmeyling/spotbugs-github-action

Always fails with error message "TypeError: Cannot read property 'sourcepath' of undefined"
See https://github.com/jwgmeligmeyling/spotbugs-github-action/issues/15

File size: 1.0 KB
Line 
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
17      uses: actions/checkout@v2
18      with:
19          fetch-depth: 256
20
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
29    - name: Run Spotbugs with Ant
30      run: |
31        ant spotbugs
32
33    - name: Upload report
34      uses: actions/upload-artifact@v2
35      with:
36        path: spotbugs-josm.xml
37
38    # Disable step, always failing with error message
39    # TypeError: Cannot read property 'sourcepath' of undefined
40    # see https://github.com/jwgmeligmeyling/spotbugs-github-action/issues/15
41    #- uses: jwgmeligmeyling/spotbugs-github-action@master
42    #  with:
43    #    path: '**/spotbugs-josm.xml'
Note: See TracBrowser for help on using the repository browser.