Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New CI #1235

Merged
merged 1 commit into from
Mar 1, 2024
Merged

New CI #1235

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
27 changes: 6 additions & 21 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: [ self-hosted, Android ]
strategy:
matrix:
api-level: [ 31 ]
api-level: [ 34 ]
target: [ google_apis ]

env:
Expand All @@ -32,31 +32,16 @@ jobs:

steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
uses: styfle/cancel-workflow-action@0.12.1
with:
access_token: ${{ github.token }}

- name: Checkout the code
uses: actions/checkout@v3.5.0
uses: actions/checkout@v4.1.1
with:
token: ${{ secrets.MY_REPO_PAT }}
submodules: recursive

- name: create AVD and generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/[email protected]
with:
api-level: ${{ matrix.api-level }}
target: ${{ matrix.target }}
profile: Pixel 4
arch: x86_64
disk-size: 6G
avd-name: kdrive-test
force-avd-creation: false
disable-animations: false
emulator-options: -no-snapshot-save -noaudio -no-boot-anim -camera-back none -skin 540x1110
script: echo "Generated AVD snapshot for caching."

- name: Create test env
run: |
touch $ENV_PATH
Expand All @@ -72,12 +57,12 @@ jobs:
run: ./gradlew testDebugUnitTest --stacktrace

- name: Run instrumentation tests
uses: ReactiveCircus/android-emulator-runner@v2.27.0
uses: ReactiveCircus/android-emulator-runner@v2.30.1
with:
api-level: ${{ matrix.api-level }}
target: ${{ matrix.target }}
profile: Pixel 4
arch: x86_64
profile: pixel_7
arch: arm64-v8a
disk-size: 6G
avd-name: kdrive-test
force-avd-creation: false
Expand Down
Loading