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

Update test dependencies #811

Merged
merged 36 commits into from
May 1, 2024
Merged
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
3a42ad8
remove unused dependencies
andresilveirah Apr 29, 2024
f7df2ac
update sample app compileSDK from 33 to 34
andresilveirah Apr 29, 2024
e6344af
update test dependencies
andresilveirah Apr 29, 2024
603c563
update sample app injected date for customConsent
andresilveirah Apr 29, 2024
5915653
fix sample app tests
andresilveirah Apr 29, 2024
72d90b4
Update test.yml
andresilveirah Apr 29, 2024
f9d9611
update java version on gh actions
andresilveirah Apr 30, 2024
7f7565f
update emulator arch on gh actions
andresilveirah Apr 30, 2024
979daaf
update emulator on gh actions
andresilveirah Apr 30, 2024
35ce51c
update emulator on gh actions
andresilveirah Apr 30, 2024
013ac2d
update emulator on gh actions
andresilveirah Apr 30, 2024
56b3d39
update emulator on gh actions
andresilveirah Apr 30, 2024
3fb298d
update emulator on gh actions
andresilveirah Apr 30, 2024
9d0bd04
update emulator on gh actions
andresilveirah Apr 30, 2024
8f63702
update emulator on gh actions
andresilveirah Apr 30, 2024
9f42ee8
update emulator on gh actions
andresilveirah Apr 30, 2024
ed6970e
update emulator on gh actions
andresilveirah Apr 30, 2024
15da7db
update emulator on gh actions
andresilveirah Apr 30, 2024
1991297
update emulator on gh actions
andresilveirah Apr 30, 2024
c3e8abc
update emulator on gh actions
andresilveirah Apr 30, 2024
72ad0ce
update emulator on gh actions
andresilveirah Apr 30, 2024
046281b
refactor OTT tests
andresilveirah Apr 30, 2024
67ea3b1
fix linting issues on Sample app ui tests
andresilveirah Apr 30, 2024
0daa132
refactor consent expiration ui tests
andresilveirah Apr 30, 2024
337aaeb
update emulator on gh actions
andresilveirah Apr 30, 2024
d963475
update gh test devices
andresilveirah Apr 30, 2024
49db9a2
implement screenshot on failure for some tests
andresilveirah Apr 30, 2024
c0de6e5
update local emulators
andresilveirah Apr 30, 2024
4d512c3
Update sample_app_tests_local.yml
andresilveirah Apr 30, 2024
853f7fb
Update sample_app_tests_local.yml
andresilveirah Apr 30, 2024
18a94cf
Update sample_app_tests_local.yml
andresilveirah Apr 30, 2024
f4f67f2
update gh emulators
andresilveirah Apr 30, 2024
6db082d
Update test_devices.yml
andresilveirah Apr 30, 2024
2fbed26
consolidate workflow files
andresilveirah May 1, 2024
c27e11d
Update test.yml
andresilveirah May 1, 2024
eaa38f2
Update test.yml
andresilveirah May 1, 2024
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
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
@@ -1,40 +1,34 @@
name: Metaap UI Tests
on:
push:
branches: [ develop, dia-2031-support-USNat ]
branches: [ develop ]
paths:
- '!README.md'
- '!release_note.txt'
# - '!samples/nativemessage/*'
pull_request:
branches: [ develop, dia-2031-support-USNat ]
# paths:
# - '!README.md'
# - '!samples/nativemessage/*'
branches: [ develop ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
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 Down
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
@@ -1,40 +1,34 @@
name: SampleApp UI Tests
on:
push:
branches: [ develop, dia-2031-support-USNat ]
branches: [ develop ]
paths:
- '!README.md'
- '!release_note.txt'
# - '!samples/nativemessage/*'
pull_request:
branches: [ develop, dia-2031-support-USNat ]
# paths:
# - '!README.md'
# - '!samples/nativemessage/*'
branches: [ develop ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
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 @@ -43,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:sample_app-nexus_low_res'
env:
SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }}
52 changes: 52 additions & 0 deletions .github/workflows/sample_app_tests_local.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Sample App UI Tests (Local)
andresilveirah marked this conversation as resolved.
Show resolved Hide resolved
on:
push:
branches: [ develop ]
paths:
- '!README.md'
- '!release_note.txt'
pull_request:
branches: [ develop ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
integration-tests-cmplib:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- 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
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
ls /dev/kvm
- uses: actions/checkout@v4
- name: set up JDK 17
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 17
cache: gradle
- name: creating local.properties # this file is normally added to .gitignore
run: touch local.properties
- name: Gradle cache
uses: gradle/actions/setup-gradle@v3
- name: run tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 28
arch: x86_64
disable-animations: true
disk-size: 6000M
heap-size: 1024M
emulator-options: -no-snapshot-save -no-window -noaudio -no-boot-anim -camera-back none
script: ./gradlew :app:connectedDebugAndroidTest
- name: Upload test reports
if: always()
uses: actions/upload-artifact@v4
with:
name: test-reports
path: '**/build/reports/androidTests'
80 changes: 0 additions & 80 deletions .github/workflows/sdk-release-testing.yml

This file was deleted.

Loading
Loading