Update koin.test to v3.5.0 (#765) #549
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: "Run Detekt and upload SARIF" | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- '**' | |
workflow_dispatch: | |
jobs: | |
with-type-resolution: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read # for actions/checkout to fetch code | |
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: "temurin" | |
java-version: 17 | |
- name: Run analysis | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: detektMain detektTest --continue | |
# Make sure we always run this upload task, | |
# because the previous step may fail if there are findings. | |
- name: Upload SARIF to Github using the upload-sarif action | |
uses: github/codeql-action/upload-sarif@v2 | |
if: success() || failure() | |
with: | |
sarif_file: build/reports/detekt/detekt.sarif | |
# Optional category for the results | |
# Used to differentiate multiple results for one commit | |
category: detekt |