Skip to content

Commit 23f1b06

Browse files
committed
Move detekt to a separate job in CI workflow
1 parent a43da92 commit 23f1b06

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

.github/workflows/build-and-run-tests.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,27 @@ jobs:
7272
run: |
7373
./gradlew build --no-daemon -PcpythonActivated=true
7474
75+
detekt:
76+
runs-on: ubuntu-latest
77+
steps:
78+
- name: Checkout repository
79+
uses: actions/checkout@v4
80+
with:
81+
submodules: "true"
82+
83+
- name: Setup Java JDK
84+
uses: actions/setup-java@v4
85+
with:
86+
java-version: 21
87+
distribution: temurin
88+
89+
- name: Setup Gradle
90+
uses: gradle/actions/setup-gradle@v3
91+
7592
- name: Run Detekt
76-
run: |
77-
./gradlew detektMain detektTest --no-daemon
93+
run: ./gradlew detektMain detektTest
7894

79-
- name: Upload SARIF to GitHub
95+
- name: Upload Detekt SARIF report
8096
uses: github/codeql-action/upload-sarif@v3
8197
if: success() || failure()
8298
with:

0 commit comments

Comments
 (0)