Skip to content

Commit 1f27e2c

Browse files
committed
fix: update CI and release workflows to ignore Detekt failures and streamline build steps
1 parent 1187d8f commit 1f27e2c

File tree

3 files changed

+5
-13
lines changed

3 files changed

+5
-13
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,8 @@ jobs:
3030
with:
3131
cache-read-only: false # Allow writing to cache on main/dev branches
3232

33-
- name: Build plugin
34-
run: ./gradlew build --build-cache
35-
36-
- name: Run Detekt
37-
run: ./gradlew detekt --build-cache || true # Don't fail CI if Detekt finds issues
33+
- name: Build and analyze
34+
run: ./gradlew build detekt --build-cache
3835

3936
- name: Upload test results
4037
uses: actions/upload-artifact@v4

.github/workflows/release.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,8 @@ jobs:
8383
run: |
8484
./gradlew updateVersion -PnewVersion=${{ needs.validate-version.outputs.version }} --no-configuration-cache
8585
86-
- name: Build plugin
87-
run: ./gradlew buildPlugin --build-cache
88-
89-
- name: Run tests
90-
run: ./gradlew test --build-cache
91-
92-
- name: Run Detekt
93-
run: ./gradlew detekt --build-cache || true # Don't fail release if Detekt finds issues
86+
- name: Build, test, and analyze
87+
run: ./gradlew buildPlugin test detekt --build-cache
9488

9589
- name: Run Plugin Verifier
9690
run: ./gradlew runPluginVerifier --build-cache || true # Don't fail release if verifier has issues

build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ detekt {
5555
// Configure Detekt tasks
5656
tasks.withType<io.gitlab.arturbosch.detekt.Detekt>().configureEach {
5757
jvmTarget = "17"
58+
ignoreFailures = true // Don't fail the build on Detekt issues
5859
}
5960

6061
tasks {

0 commit comments

Comments
 (0)