Skip to content

Commit d59aa00

Browse files
committed
Add reusable workflows for PRs and testing builds
1 parent cf0b815 commit d59aa00

File tree

7 files changed

+6237
-2
lines changed

7 files changed

+6237
-2
lines changed

.github/workflows/pr.yml

+9
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

.github/workflows/testing-build.yml

+10
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

+8-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ plugins {
77
alias(libs.plugins.android)
88
alias(libs.plugins.kotlinAndroid)
99
alias(libs.plugins.ksp)
10+
alias(libs.plugins.detekt)
1011
}
1112

1213
val keystorePropertiesFile: File = rootProject.file("keystore.properties")
@@ -93,10 +94,16 @@ android {
9394

9495
lint {
9596
checkReleaseBuilds = false
96-
abortOnError = false
97+
abortOnError = true
98+
warningsAsErrors = true
99+
baseline = file("lint-baseline.xml")
97100
}
98101
}
99102

103+
detekt {
104+
baseline = file("detekt-baseline.xml")
105+
}
106+
100107
dependencies {
101108
implementation(libs.fossify.commons)
102109
implementation(libs.androidx.multidex)

app/detekt-baseline.xml

+821
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)