Bump actions/upload-artifact from 4.2.0 to 4.3.0 (#247) #739
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Android CI | |
on: [ push ] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
unit_tests: | |
name: Unit Tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Project Checkout | |
uses: actions/checkout@v4.1.1 | |
- name: Setup Android Build | |
uses: ./.github/actions/setup-android-build | |
- name: Run Tests | |
run: ./gradlew testPinboardapiDebugUnitTest --stacktrace | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Project Checkout | |
uses: actions/checkout@v4.1.1 | |
- name: Setup Android Build | |
uses: ./.github/actions/setup-android-build | |
- name: Build | |
run: ./gradlew assemblePinboardapi --stacktrace | |
- name: Upload Pinboard API APK | |
if: success() | |
uses: actions/upload-artifact@v4.3.0 | |
with: | |
path: app/build/outputs/apk/pinboardapi/debug/*.apk | |
instrumented_tests: | |
name: Instrumented Tests | |
runs-on: macOS-latest | |
timeout-minutes: 30 | |
needs: [ unit_tests, build ] | |
steps: | |
- name: Project Checkout | |
uses: actions/checkout@v4.1.1 | |
- name: Setup Android Build | |
uses: ./.github/actions/setup-android-build | |
- name: Run instrumented tests | |
uses: reactivecircus/android-emulator-runner@v2.29.0 | |
with: | |
api-level: 30 | |
arch: x86_64 | |
disable-animations: true | |
script: ./gradlew :app:connectedPinboardapiDebugAndroidTest --stacktrace |