fix tests #5
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: "Static Analysis" | |
on: | |
push: | |
branches: | |
- '**' | |
tags-ignore: | |
- '**' | |
pull_request: | |
permissions: | |
checks: write | |
jobs: | |
spotbugs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
# Install required tools | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: "corretto" | |
java-version: "11" | |
# Run tests | |
- name: Run Spotbugs | |
run: ./gradlew clean spotbugs | |
# Show Spotbugs report | |
- name: Show Spotbugs report | |
uses: jwgmeligmeyling/spotbugs-github-action@master | |
with: | |
path: "build/reports/spotbugs/main/spotbugs.xml" | |
if: failure() | |
# Stop Gradle daemon | |
- name: Stop Gradle | |
run: ./gradlew --stop | |
if: always() |