Running Detekt checks #3
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: Detekt Check | |
run-name: Running Detekt checks | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
branches: | |
- "main" | |
jobs: | |
detekt-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- name: Set up JDK 17 | |
uses: actions/setup-java@main | |
with: | |
java-version: "17" | |
distribution: "temurin" | |
cache: gradle | |
- name: "Run Detekt" | |
run: ./gradlew detektAll | |
continue-on-error: false | |
- name: "Upload Detkt results" | |
uses: github/codeql-action/upload-sarif@main | |
if: success() || failure() | |
with: | |
sarif_file: build/reports/detekt/detekt.sarif | |
category: code-quality-analyzis |