Skip to content

Commit

Permalink
ci(detekt): run reviewdog after success or failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron-Ritter committed Jan 29, 2024
1 parent 04ede2d commit 47cabf5
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/detekt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ jobs:
java-version: '17'
distribution: 'zulu'

# Sets up the reviewdog cli
- name: Setup reviewdog
uses: reviewdog/action-setup@v1

- name: Show reviewdog version
run: reviewdog -version

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -71,13 +78,7 @@ jobs:
with:
sarif_file: build/reports/detekt/merge.sarif.json

# Sets up the reviewdog cli
- name: Setup reviewdog
uses: reviewdog/action-setup@v1

- name: Show reviewdog version
run: reviewdog -version

# Process Sarif Report file from Detekt with reviewdog cli
- name: Run reviewdog
if: success() || failure()
run: reviewdog -f=sarif -diff="git diff" -name="detekt" < build/reports/detekt/merge.sarif.json

0 comments on commit 47cabf5

Please sign in to comment.