Skip to content
16 changes: 14 additions & 2 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ jobs:
distribution: temurin
java-version: 11
- uses: gradle/gradle-build-action@v2
name: build and test
with:
arguments: check build -PdetektAutoCorrect=false --scan
gradle-version: wrapper
arguments: check build -x detekt -Pdetekt.multiplatform.disabled=true --scan
gradle-version: wrapper
- name: Upload test reports
if: ${{ failure() }} # runs only if previous step has failed, the entire workflow will still be marked as failed
uses: actions/upload-artifact@v3
Expand All @@ -35,3 +36,14 @@ jobs:
with:
flags: unittests
fail_ci_if_error: true # optional (default = false)

- uses: gradle/gradle-build-action@v2
name: run detekt
with:
arguments: check -Pdetekt.multiplatform.disabled=false
gradle-version: wrapper
- uses: reviewdog/action-suggester@v1
# Fixme: run if only the previous step has failed
if: ${{ failure() }}
with:
tool_name: detekt
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ package io.github.petertrr.diffutils.patch
public enum class VerifyChunk {
OK,
POSITION_OUT_OF_TARGET,
CONTENT_DOES_NOT_MATCH_TARGET,
CONTENT_DOES_NOT_MATCH_TARGET,;
}