Skip to content

Commit

Permalink
Use ubuntu machine for running integration/ui tests on CI (#4865)
Browse files Browse the repository at this point in the history
  • Loading branch information
msasikanth authored Apr 1, 2024
1 parent e35d95a commit c0377d5
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 7 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/benchmark_suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@ concurrency:
cancel-in-progress: true

jobs:
# reactivecircus/android-emulator-runner@v2 requires MacOS to run on
# https://github.com/ReactiveCircus/android-emulator-runner
benchmark_suite:
runs-on: [ macos-latest ]
runs-on: [ ubuntu-latest ]
steps:
- 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
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- name: Checkout Android source
uses: actions/checkout@v3

Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/ci_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,20 @@ jobs:
- name: QA Unit Tests
run: ./gradlew --build-cache --no-daemon testQaDebugUnitTest

# reactivecircus/android-emulator-runner@v2 requires MacOS to run on
# https://github.com/ReactiveCircus/android-emulator-runner
qa_android_tests:
runs-on: [ macos-latest ]
runs-on: [ ubuntu-latest ]
timeout-minutes: 60
env:
AVD_API_LEVEL: 30
AVD_ARCH: x86_64
HEROKU_API_KEY: ${{ secrets.SERVICES_HEROKU_API_KEY }}
steps:
- 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
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- name: Checkout Android source
uses: actions/checkout@v3
with:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/maestro_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,14 @@ concurrency:

jobs:
maestro-tests:
runs-on: [ macos-latest ]
runs-on: [ ubuntu-latest ]
steps:
- 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
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- name: Checkout Android source
uses: actions/checkout@v3

Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
- Bump Room to v2.6.1
- Bump AndroidX ViewModel v2.7.0
- Bump AndroidX Work to v2.9.0
- Use ubuntu machine for running integration/ui tests on CI

### Fixes

Expand Down

0 comments on commit c0377d5

Please sign in to comment.