Skip to content

Commit

Permalink
Add reusable workflows for PRs and testing builds
Browse files Browse the repository at this point in the history
  • Loading branch information
esensar committed Sep 28, 2024
1 parent 2be97ce commit 17bec87
Show file tree
Hide file tree
Showing 7 changed files with 1,873 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: PR

on:
pull_request:
branches: [ master ]

jobs:
call-pr-workflow:
uses: FossifyOrg/.github/.github/workflows/pr.yml@main
10 changes: 10 additions & 0 deletions .github/workflows/testing-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Testing build (on PR)

on:
pull_request:
branches: [ master ]
types: [ labeled, opened, synchronize, reopened ]

jobs:
call-testing-build-workflow:
uses: FossifyOrg/.github/.github/workflows/testing-build.yml@main
9 changes: 8 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ plugins {
alias(libs.plugins.android)
alias(libs.plugins.kotlinAndroid)
alias(libs.plugins.kotlinSerialization)
alias(libs.plugins.detekt)
}

val keystorePropertiesFile: File = rootProject.file("keystore.properties")
Expand Down Expand Up @@ -87,10 +88,16 @@ android {

lint {
checkReleaseBuilds = false
abortOnError = false
abortOnError = true
warningsAsErrors = true
baseline = file("lint-baseline.xml")
}
}

detekt {
baseline = file("detekt-baseline.xml")
}

dependencies {
implementation(libs.fossify.commons)
implementation(libs.indicator.fast.scroll)
Expand Down
231 changes: 231 additions & 0 deletions app/detekt-baseline.xml

Large diffs are not rendered by default.

Loading

0 comments on commit 17bec87

Please sign in to comment.