Skip to content

Commit 1e58e72

Browse files
authored
Merge pull request #70 from esensar/ci
Add reusable workflows for PRs and testing builds
2 parents dfbf2bc + d1b1317 commit 1e58e72

7 files changed

Lines changed: 1738 additions & 1 deletion

File tree

.github/workflows/pr.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: PR
2+
3+
on:
4+
pull_request:
5+
branches: [ master ]
6+
7+
jobs:
8+
call-pr-workflow:
9+
uses: FossifyOrg/.github/.github/workflows/pr.yml@main
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Testing build (on PR)
2+
3+
on:
4+
pull_request:
5+
branches: [ master ]
6+
types: [ labeled, opened, synchronize, reopened ]
7+
8+
jobs:
9+
call-testing-build-workflow:
10+
uses: FossifyOrg/.github/.github/workflows/testing-build.yml@main

app/build.gradle.kts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ plugins {
77
alias(libs.plugins.kotlinAndroid)
88
alias(libs.plugins.ksp)
99
alias(libs.plugins.kotlinSerialization)
10+
alias(libs.plugins.detekt)
1011
}
1112

1213
val keystorePropertiesFile: File = rootProject.file("keystore.properties")
@@ -91,10 +92,16 @@ android {
9192

9293
lint {
9394
checkReleaseBuilds = false
94-
abortOnError = false
95+
abortOnError = true
96+
warningsAsErrors = true
97+
baseline = file("lint-baseline.xml")
9598
}
9699
}
97100

101+
detekt {
102+
baseline = file("detekt-baseline.xml")
103+
}
104+
98105
dependencies {
99106
implementation(libs.fossify.commons)
100107
implementation(libs.androidx.constraintlayout)

app/detekt-baseline.xml

Lines changed: 178 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)