mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
Refactor PR workflow to include check-changes step (#4397)
This commit is contained in:
parent
3659f468e4
commit
0f83e3e3ab
1 changed files with 8 additions and 6 deletions
14
.github/workflows/pull-request.yml
vendored
14
.github/workflows/pull-request.yml
vendored
|
|
@ -1,5 +1,3 @@
|
|||
name: Android CI (PR)
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
|
|
@ -41,16 +39,20 @@ jobs:
|
|||
secrets: inherit
|
||||
|
||||
build:
|
||||
needs: lint
|
||||
if: ${{ !cancelled() && !failure() }}
|
||||
needs:
|
||||
- check-changes
|
||||
- lint
|
||||
if: ${{ needs.check-changes.outputs.code_changed == 'true' && !cancelled() && !failure() }}
|
||||
uses: ./.github/workflows/reusable-android-build.yml
|
||||
with:
|
||||
test_flavors: 'google'
|
||||
secrets: inherit
|
||||
|
||||
androidTest:
|
||||
needs: lint
|
||||
if: ${{ !cancelled() && !failure() }}
|
||||
needs:
|
||||
- check-changes
|
||||
- lint
|
||||
if: ${{ needs.check-changes.outputs.code_changed == 'true' && !cancelled() && !failure() }}
|
||||
uses: ./.github/workflows/reusable-android-test.yml
|
||||
with:
|
||||
api_levels: '[35]' # Run only on API 35 for PRs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue