Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ on:
permissions:
contents: read

# Superseded pushes to a pull request cancel their in-flight run; pushes to main always
# finish so the branch keeps a complete history of results.
concurrency:
group: android-ci-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
test-and-build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -58,8 +64,16 @@ jobs:
- name: Static analysis (detekt + spotless)
run: ./gradlew detekt spotlessCheck

- name: Test, lint and build APKs
run: ./gradlew :app:testDebugUnitTest :app:lintDebug :app:assembleDebug :app:assembleRelease
- name: Test, lint and build debug APK
run: ./gradlew :app:testDebugUnitTest :app:lintDebug :app:assembleDebug

# assembleRelease runs R8 with minification and resource shrinking, which is the single
# most expensive task in this workflow. The published artifact is built by release.yml,
# so pull requests only need it to prove the release build still compiles — which main
# covers on every merge.
- name: Build release APK
if: github.event_name == 'push'
run: ./gradlew :app:assembleRelease

- name: Generate coverage report
run: ./gradlew :app:jacocoTestReport
Expand All @@ -79,6 +93,7 @@ jobs:
if-no-files-found: error

- name: Upload unsigned release APK
if: github.event_name == 'push'
uses: actions/upload-artifact@v4
with:
name: opencode-android-release-unsigned
Expand Down
233 changes: 0 additions & 233 deletions .github/workflows/ui-screenshots.yml

This file was deleted.

This file was deleted.

Loading
Loading