Skip to content

Small Github actions improvements (#13) #7

Small Github actions improvements (#13)

Small Github actions improvements (#13) #7

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