Last change
on this file since 19141 was 19058, checked in by taylor.smock, 8 months ago |
GitHub CI: Fix deprecation warnings for CodeQL and checkstyle workflows
Also drop Java 8 from ant-test.
|
File size:
858 bytes
|
Rev | Line | |
---|
[18053] | 1 | name: "Checkstyle"
|
---|
| 2 |
|
---|
| 3 | on:
|
---|
| 4 | push:
|
---|
| 5 | branches: [ master ]
|
---|
| 6 | pull_request:
|
---|
| 7 | # The branches below must be a subset of the branches above
|
---|
| 8 | branches: [ master ]
|
---|
| 9 |
|
---|
| 10 | jobs:
|
---|
| 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 |
|
---|
[18053] | 29 | - name: Run Checkstyle with Ant
|
---|
| 30 | run: |
|
---|
| 31 | ant checkstyle
|
---|
| 32 |
|
---|
[18057] | 33 | - name: Upload report
|
---|
[18993] | 34 | uses: actions/upload-artifact@v4
|
---|
[18057] | 35 | with:
|
---|
| 36 | path: checkstyle-josm.xml
|
---|
| 37 |
|
---|
[19058] | 38 | - uses: JOSM/JOSMPluginAction/actions/checkstyle@v2
|
---|
[18053] | 39 | with:
|
---|
[18670] | 40 | file: "checkstyle-josm.xml"
|
---|
Note:
See
TracBrowser
for help on using the repository browser.