-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #127 from KakaoCup/prepare-release
Prepare release
- Loading branch information
Showing
8 changed files
with
63 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@file:DependsOn("io.github.vacxe.danger.kotlin:detekt:1.1.0") | ||
|
||
import systems.danger.kotlin.* | ||
import systems.danger.kotlin.models.github.* | ||
import io.github.vacxe.danger.kotlin.detekt.* | ||
import java.io.File | ||
|
||
val detektPlugin = DetektPlugin { it.removePrefix("/home/runner/work/Kakao/Kakao/") } | ||
register.plugin(detektPlugin) | ||
|
||
danger(args) { | ||
detektReport() | ||
} | ||
|
||
fun detektReport() { | ||
val detektReportFile = File("build/reports/detekt/detekt.xml") | ||
if (!detektReportFile.exists()) { | ||
warn( | ||
"Detekt report not exist", | ||
) | ||
} else { | ||
detektPlugin.parseAndReport(detektReportFile) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,9 +11,24 @@ jobs: | |
with: | ||
distribution: "temurin" | ||
java-version: 17 | ||
cache: gradle | ||
- name: detekt | ||
run: | | ||
./gradlew clean detekt | ||
- name: Upload Detekt Artifacts | ||
uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: detektArtifacts | ||
path: build/reports/detekt | ||
- name: Danger | ||
uses: danger/[email protected] | ||
if: always() | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
dangerfile: ".danger/pr_detekt.df.kts" | ||
args: "--failOnErrors --no-publish-check" | ||
|
||
assemble-debug-apk: | ||
needs: [ detekt ] | ||
|
@@ -26,6 +41,7 @@ jobs: | |
with: | ||
distribution: "temurin" | ||
java-version: 17 | ||
cache: gradle | ||
- name: Assemble Debug APK | ||
run: bash ./gradlew sample:assembleDebug | ||
- name: Upload app APK | ||
|
@@ -45,6 +61,7 @@ jobs: | |
with: | ||
distribution: "temurin" | ||
java-version: 17 | ||
cache: gradle | ||
- name: Assemble Instrumental APK | ||
run: bash ./gradlew sample:assembleDebugAndroidTest | ||
- name: Upload app APK | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-all.zip | ||
networkTimeout=10000 | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.5.1 | ||
3.6.0 |