Skip to content

Commit

Permalink
Merge pull request #31 from aivanovski/feature/add-detekt
Browse files Browse the repository at this point in the history
Add detekt
  • Loading branch information
aivanovski authored Apr 2, 2024
2 parents 58b3124 + e40c720 commit 9bf0291
Show file tree
Hide file tree
Showing 18 changed files with 1,071 additions and 200 deletions.
2 changes: 1 addition & 1 deletion .github/badges/jacoco.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 21 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,26 @@ jobs:
- name: Run ktlint
run: ./ktlint --editorconfig=".editorconfig"

run-detekt:
name: 'Run detekt'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11

- name: Download detekt jar
run: |
curl -sSLO https://github.com/detekt/detekt/releases/download/v1.23.6/detekt-cli-1.23.6-all.jar
- name: Run detekt
run: java -jar detekt-cli-1.23.6-all.jar --config detekt.yml

run-tests:
name: 'Run tests'
runs-on: ubuntu-latest
Expand All @@ -48,7 +68,7 @@ jobs:

build-jar:
name: 'Build jar'
needs: [ check-code-style, run-tests ]
needs: [ check-code-style, run-detekt, run-tests ]
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
Loading

0 comments on commit 9bf0291

Please sign in to comment.