Skip to content

Commit

Permalink
right place
Browse files Browse the repository at this point in the history
  • Loading branch information
spacecowboy committed Feb 10, 2025
1 parent a1afab4 commit 32ec091
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/android_pr_build.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
name: PR Checks
name: Continuous Integration

on:
push:
branches:
- master
paths:
- 'app/**'
- 'fastlane/**'
- 'gradle/**'
- 'build.gradle.kts'
- 'deploy_playstore_fast.sh'
- 'settings.gradle.kts'
- 'gradle.properties'
- 'gradlew'
- 'gradlew.bat'
- 'gradle-wrapper.properties'
- 'gradle-wrapper.jar'
- '.github/workflows/android_pr_build.yml'
- 'fastlane/**'
pull_request:
paths:
- 'app/**'
Expand All @@ -30,7 +31,7 @@ on:
- '.github/workflows/android_pr_build.yml'

jobs:
compile_and_lint:
compile-and-lint:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
Expand Down Expand Up @@ -61,7 +62,7 @@ jobs:
- name: lint
run: ./gradlew lintFdroidDebug

compile_android_test:
compile-android-test:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
Expand Down Expand Up @@ -115,7 +116,7 @@ jobs:
- name: test
run: ./gradlew testFdroidDebug

release_apk:
release-apk:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
Expand All @@ -142,7 +143,7 @@ jobs:
- name: release apk
run: ./gradlew assembleFdroidRelease

play_bundle:
play-bundle:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
Expand All @@ -169,7 +170,6 @@ jobs:
- name: release bundle
run: ./gradlew bundlePlayRelease

# Save bundle to artifacts for later use
- name: save bundle
uses: actions/upload-artifact@v4
with:
Expand All @@ -179,11 +179,11 @@ jobs:
app/build/outputs/bundle/playRelease/app-play-release.aab
app/build/outputs/mapping/playRelease/mapping.txt
validate_deploy:
validate-deploy:
runs-on: ubuntu-latest
timeout-minutes: 10
if: github.event_name == 'pull_request'
needs: [play_bundle]
needs: [play-bundle]
permissions:
contents: read
steps:
Expand All @@ -209,10 +209,17 @@ jobs:
uses: actions/download-artifact@v4
with:
name: bundle
path: app/build/outputs/

- name: validate deploy
run: ./deploy_playstore_fast.sh --dry-run

deploy-beta:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
timeout-minutes: 10


ktlint:
runs-on: ubuntu-latest
timeout-minutes: 5
Expand Down

0 comments on commit 32ec091

Please sign in to comment.