Skip to content

Commit

Permalink
update emulator on gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
andresilveirah committed Apr 30, 2024
1 parent 9f42ee8 commit ed6970e
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 277 deletions.
49 changes: 0 additions & 49 deletions .github/workflows/feature-tests.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,23 @@ concurrency:
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
ui-test-metaapp:
timeout-minutes: 30
runs-on: ubuntu-latest
env:
PROJECT_ID: ${{ secrets.PROJECT_ID }}
SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }}
steps:
- uses: actions/checkout@v4
- name: set up JDK 11
- name: set up JDK 17
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 11
java-version: 17
cache: gradle
- name: creating local.properties # this file is normally added to .gitignore
run: touch local.properties
- name: Cache multiple paths
uses: actions/cache@v2
with:
path: |
~/cache
!~/cache/exclude
**/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
uses: gradle/actions/setup-gradle@v3
- name: Build test artifact
run: |
./gradlew metaapp:assembleDebug metaapp:assembleDebugAndroidTest
Expand All @@ -42,6 +37,6 @@ jobs:
- name: Run tests Metaapp on Firebase Test Lab
uses: asadmansr/Firebase-Test-Lab-Action@v1.0
with:
arg-spec: 'test_devices.yml:metaapp-nexus_low_res'
arg-spec: 'test_devices.yml:nexus_low_res'
env:
SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }}
71 changes: 0 additions & 71 deletions .github/workflows/release-testing.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,23 @@ concurrency:
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
ui-test-app:
timeout-minutes: 30
runs-on: ubuntu-latest
env:
PROJECT_ID: ${{ secrets.PROJECT_ID }}
SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }}
steps:
- uses: actions/checkout@v4
- name: set up JDK 11
- name: set up JDK 17
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 11
java-version: 17
cache: gradle
- name: creating local.properties # this file is normally added to .gitignore
run: touch local.properties
- name: Cache multiple paths
uses: actions/cache@v2
with:
path: |
~/cache
!~/cache/exclude
**/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
uses: actions/cache@v3
- name: Build test artifact
run: |
./gradlew app:assembleDebug app:assembleDebugAndroidTest
Expand All @@ -42,6 +37,6 @@ jobs:
- name: Run tests SampleApp on Firebase Test Lab
uses: asadmansr/Firebase-Test-Lab-Action@v1.0
with:
arg-spec: 'test_devices.yml:android-pixel-3-api28'
arg-spec: 'test_devices.yml:nexus_low_res'
env:
SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }}
80 changes: 0 additions & 80 deletions .github/workflows/sdk-release-testing.yml

This file was deleted.

6 changes: 4 additions & 2 deletions .github/workflows/test.yml → .github/workflows/sdk_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ concurrency:
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
unit-test-cmplib:
timeout-minutes: 30
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -36,10 +37,11 @@ jobs:
- name: Unit Tests cmplibrary
run: ./gradlew cmplibrary:test
integration-tests-cmplib:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- run: rm -rf "$AGENT_TOOLSDIRECTORY"
- run: rm -rf /usr/share/dotnet
- run: rm -rf "$AGENT_TOOLSDIRECTORY" # free up space, impacts on the emulator being able to install
- run: rm -rf /usr/share/dotnet # free up space, impacts on the emulator being able to install
- name: Enable KVM group perms
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
Expand Down
58 changes: 3 additions & 55 deletions test_devices.yml
Original file line number Diff line number Diff line change
@@ -1,63 +1,11 @@
android-pixel-4:
nexus_low_res:
type: instrumentation
app: app-debug.apk
test: app-debug-androidTest.apk
device:
- model: walleye
version: 29
locale: 'en'
orientation: portrait
android-pixel-3-api28:
type: instrumentation
app: app-debug.apk
test: app-debug-androidTest.apk
device:
- model: blueline
version: 28
locale: 'en'
orientation: portrait
app-nexus_low_res:
type: instrumentation
app: app-debug.apk
test: app-debug-androidTest.apk
device:
- model: NexusLowRes
version: 29
locale: 'en'
orientation: portrait
metaapp-nexus_low_res:
type: instrumentation
app: metaapp-debug.apk
test: metaapp-debug-androidTest.apk
use-orchestrator: true
num-flaky-test-attempts: 1
device:
- model: NexusLowRes
version: 29
locale: 'en'
orientation: portrait
meta-device:
type: instrumentation
app: metaapp-debug.apk
test: metaapp-debug-androidTest.apk
device:
- model: a10
version: 29
locale: 'en'
orientation: portrait
meta-device-pixel-2:
type: instrumentation
app: metaapp-debug.apk
test: metaapp-debug-androidTest.apk
device:
- model: Pixel2
version: 29
locale: 'en'
orientation: portrait
app-device:
type: instrumentation
app: app-debug.apk
test: app-debug-androidTest.apk
device:
- model: Pixel2
version: 29
locale: 'en'
orientation: portrait

0 comments on commit ed6970e

Please sign in to comment.