Skip to content

Running Detekt checks #4

Running Detekt checks

Running Detekt checks #4

name: Static code analysis
run-name: Running Detekt checks
on:
push:
branches:
- "dev"
pull_request:
branches:
- "dev"
jobs:
detekt-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: "17"
distribution: "temurin"
cache: gradle
- name: "Run static analysis"
run: ./gradlew detektAll mergeLintSarif
continue-on-error: false
- name: "Upload Detkt sarif results"
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: build/reports/detekt/detekt.sarif
category: detekt
- name: "Upload Lint sarif results"
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: build/reports/lint-merged.sarif
category: lint