Small Github actions improvements (#13) #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Codacy Local Analysis" | |
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
analyze: | |
name: analyze | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 17 | |
- uses: gradle/actions/setup-gradle@v3 | |
with: | |
gradle-version: 8.9 | |
- name: build | |
run: gradle build | |
- name: generate coverage report | |
run: gradle jacocoTestReport | |
- name: uploade coverage data | |
uses: codacy/[email protected] | |
with: | |
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
coverage-reports: reports/coverage.xml | |
- name: generate and upload local analysis data | |
uses: codacy/[email protected] | |
with: | |
tool: spotbugs | |
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
upload: true |