mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
chore(ci): Refactor and optimize GitHub Actions workflows (#4252)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
parent
d9bc79b396
commit
cf48d6c1c1
6 changed files with 144 additions and 59 deletions
21
.github/workflows/merge-queue.yml
vendored
21
.github/workflows/merge-queue.yml
vendored
|
|
@ -9,7 +9,14 @@ concurrency:
|
|||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build_and_detekt:
|
||||
lint:
|
||||
if: github.repository == 'meshtastic/Meshtastic-Android'
|
||||
uses: ./.github/workflows/reusable-lint.yml
|
||||
secrets:
|
||||
GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
|
||||
|
||||
build:
|
||||
needs: lint
|
||||
if: github.repository == 'meshtastic/Meshtastic-Android'
|
||||
uses: ./.github/workflows/reusable-android-build.yml
|
||||
with:
|
||||
|
|
@ -21,10 +28,12 @@ jobs:
|
|||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||
|
||||
androidTest:
|
||||
needs: lint
|
||||
if: github.repository == 'meshtastic/Meshtastic-Android'
|
||||
uses: ./.github/workflows/reusable-android-test.yml
|
||||
with:
|
||||
api_levels: '[26, 35]' # Run on both API 26 and 35 for merge queue
|
||||
test_flavors: 'both' # Run both flavors for merge queue (comprehensive)
|
||||
upload_artifacts: false
|
||||
secrets:
|
||||
GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
|
||||
|
|
@ -34,10 +43,9 @@ jobs:
|
|||
name: Check Workflow Status # Matches another in pull-request, and is required for merge to main.
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
[
|
||||
build_and_detekt,
|
||||
androidTest
|
||||
]
|
||||
- lint
|
||||
- build
|
||||
- androidTest
|
||||
if: always()
|
||||
steps:
|
||||
- name: Check Workflow Status
|
||||
|
|
@ -48,5 +56,6 @@ jobs:
|
|||
exit 1
|
||||
fi
|
||||
}
|
||||
exit_on_result "build_and_detekt" "${{ needs.build_and_detekt.result }}"
|
||||
exit_on_result "lint" "${{ needs.lint.result }}"
|
||||
exit_on_result "build" "${{ needs.build.result }}"
|
||||
exit_on_result "androidTest" "${{ needs.androidTest.result }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue