Skip to content

Commit

Permalink
Fix CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
aivanovski committed Apr 2, 2024
1 parent 606e8d9 commit a3fc228
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,20 @@ jobs:
- name: Run ktlint
run: ./ktlint --editorconfig=".editorconfig"

- name: Download detekt jar
run: |
curl -sSLO https://github.com/detekt/detekt/releases/download/v1.23.6/detekt-cli-1.23.6-all.jar
run-detekt:
name: 'Run detekt'
runs-on: unbunt-latest
steps:
- 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

Expand Down Expand Up @@ -61,7 +65,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

0 comments on commit a3fc228

Please sign in to comment.