Skip to content

Commit

Permalink
Merge pull request #12 from esensar/ci
Browse files Browse the repository at this point in the history
Add reusable workflows for PRs and testing builds
  • Loading branch information
naveensingh authored Sep 29, 2024
2 parents ee2d9f7 + 4746824 commit 8d66c4d
Show file tree
Hide file tree
Showing 9 changed files with 1,048 additions and 5 deletions.
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 @@ -5,6 +5,7 @@ import org.jetbrains.kotlin.konan.properties.Properties
plugins {
alias(libs.plugins.android)
alias(libs.plugins.kotlinAndroid)
alias(libs.plugins.detekt)
base
}

Expand Down Expand Up @@ -98,10 +99,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.simple.tools.commons)

Expand Down
135 changes: 135 additions & 0 deletions app/detekt-baseline.xml

Large diffs are not rendered by default.

Loading

0 comments on commit 8d66c4d

Please sign in to comment.