Skip to content

Commit

Permalink
Improve CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Domi04151309 committed Jan 19, 2024
1 parent 30db4be commit e230a15
Show file tree
Hide file tree
Showing 4 changed files with 804 additions and 2 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ jobs:
chmod a+x ktlint
sudo mv ktlint /usr/local/bin/
- name: Run
run: ktlint
run: ktlint --reporter sarif -l none > ktlint.sarif
- name: Upload SARIF
uses: github/codeql-action/upload-sarif@v2
if: success() || failure()
with:
sarif_file: ktlint.sarif
detekt:
runs-on: ubuntu-latest
steps:
Expand All @@ -33,6 +38,14 @@ jobs:
run: |
chmod +x gradlew
./gradlew detekt
- name: Upload SARIF
uses: github/codeql-action/upload-sarif@v2
if: success() || failure()
with:
sarif_file: app/build/reports/detekt/detekt.sarif
- name: Job Summary
if: success() || failure()
run: cat ./app/build/reports/detekt/detekt.md >> $GITHUB_STEP_SUMMARY
build:
runs-on: ubuntu-latest
steps:
Expand Down
5 changes: 5 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ android {
kotlinOptions {
jvmTarget = "17"
}
detekt {
config.setFrom(file("detekt-config.yml"))
buildUponDefaultConfig = true
basePath = rootProject.projectDir.absolutePath
}
lint {
disable += "MissingTranslation"
}
Expand Down
Loading

0 comments on commit e230a15

Please sign in to comment.