Skip to content

Commit 0f7a163

Browse files
Merge branch 'release/5.222.0'
2 parents 6551330 + a0c4232 commit 0f7a163

File tree

274 files changed

+15279
-6363
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

274 files changed

+15279
-6363
lines changed
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
name: End-to-End tests (Robin)
2+
3+
on:
4+
schedule:
5+
- cron: '0 3 * * *' # run at 3 AM UTC
6+
workflow_dispatch:
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
instrumentation_tests:
14+
runs-on: ubuntu-latest
15+
name: End-to-End tests
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
with:
21+
submodules: recursive
22+
23+
- name: Set up JDK 17
24+
uses: actions/setup-java@v4
25+
with:
26+
java-version: '17'
27+
distribution: 'adopt'
28+
29+
- name: Create folder
30+
if: always()
31+
run: mkdir apk
32+
33+
- name: Decode keys
34+
uses: davidSchuppa/base64Secret-toFile-action@v2
35+
with:
36+
secret: ${{ secrets.FAKE_RELEASE_PROPERTIES }}
37+
fileName: ddg_android_build.properties
38+
destination-path: $HOME/jenkins_static/com.duckduckgo.mobile.android/
39+
40+
- name: Decode key file
41+
uses: davidSchuppa/base64Secret-toFile-action@v2
42+
with:
43+
secret: ${{ secrets.FAKE_RELEASE_KEY }}
44+
fileName: android
45+
destination-path: $HOME/jenkins_static/com.duckduckgo.mobile.android/
46+
47+
- name: Setup Gradle
48+
uses: gradle/actions/setup-gradle@v3
49+
50+
- name: Assemble release APK
51+
run: ./gradlew assemblePlayRelease -Pforce-default-variant
52+
53+
- name: Move APK to new folder
54+
if: always()
55+
run: find . -name "*.apk" -exec mv '{}' apk/release.apk \;
56+
57+
- name: Ad click detection flows
58+
uses: mobile-dev-inc/[email protected]
59+
with:
60+
api-key: ${{ secrets.ROBIN_API_KEY }}
61+
project-id: ${{ vars.ROBIN_ANDROID_PROJECT_ID }}
62+
name: adClickTest_${{ github.sha }}
63+
timeout: 120
64+
app-file: apk/release.apk
65+
android-api-level: 30
66+
workspace: .maestro
67+
include-tags: adClickTest
68+
69+
- name: Privacy Tests
70+
if: always()
71+
uses: mobile-dev-inc/[email protected]
72+
with:
73+
api-key: ${{ secrets.ROBIN_API_KEY }}
74+
project-id: ${{ vars.ROBIN_ANDROID_PROJECT_ID }}
75+
name: privacyTest_${{ github.sha }}
76+
timeout: 120
77+
app-file: apk/release.apk
78+
android-api-level: 30
79+
workspace: .maestro
80+
include-tags: privacyTest
81+
82+
- name: Security Tests
83+
if: always()
84+
uses: mobile-dev-inc/[email protected]
85+
with:
86+
api-key: ${{ secrets.ROBIN_API_KEY }}
87+
project-id: ${{ vars.ROBIN_ANDROID_PROJECT_ID }}
88+
name: securityTest_${{ github.sha }}
89+
timeout: 120
90+
app-file: apk/release.apk
91+
android-api-level: 30
92+
workspace: .maestro
93+
include-tags: securityTest
94+
95+
- name: Release Tests
96+
if: always()
97+
uses: mobile-dev-inc/[email protected]
98+
with:
99+
api-key: ${{ secrets.ROBIN_API_KEY }}
100+
project-id: ${{ vars.ROBIN_ANDROID_PROJECT_ID }}
101+
name: releaseTest_${{ github.sha }}
102+
timeout: 120
103+
app-file: apk/release.apk
104+
android-api-level: 30
105+
workspace: .maestro
106+
include-tags: releaseTest
107+
108+
- name: Notifications permissions Android 13+
109+
if: always()
110+
uses: mobile-dev-inc/[email protected]
111+
with:
112+
api-key: ${{ secrets.ROBIN_API_KEY }}
113+
project-id: ${{ vars.ROBIN_ANDROID_PROJECT_ID }}
114+
name: notificationPermissionTest_${{ github.sha }}
115+
timeout: 120
116+
app-file: apk/release.apk
117+
android-api-level: 33
118+
workspace: .maestro/notifications_permissions_android13_plus

0 commit comments

Comments
 (0)