Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better CI #91

Merged
merged 2 commits into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -54,6 +54,11 @@ android {
kotlinOptions {
jvmTarget = "17"
}
detekt {
config.setFrom(file("detekt-config.yml"))
buildUponDefaultConfig = true
basePath = rootProject.projectDir.absolutePath
}
lint {
disable += "MissingTranslation"
}
Expand Down
Loading