summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authorAlbin <albin@mullvad.net>2023-01-23 09:29:19 +0100
committerAlbin <albin@mullvad.net>2023-01-25 13:26:35 +0100
commit174dcf1d479109b39da4c25705685d26c630bef9 (patch)
tree8fb465005a0d7d00b279cf0901004f8f58232bb2 /.github/workflows
parent47ad1d8c1f334e30af65587a9f099ea3b7b7b476 (diff)
downloadmullvadvpn-174dcf1d479109b39da4c25705685d26c630bef9.tar.xz
mullvadvpn-174dcf1d479109b39da4c25705685d26c630bef9.zip
Add mockapi test job in gh actions
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/android-app.yml24
1 files changed, 20 insertions, 4 deletions
diff --git a/.github/workflows/android-app.yml b/.github/workflows/android-app.yml
index e89756a792..6d66339f22 100644
--- a/.github/workflows/android-app.yml
+++ b/.github/workflows/android-app.yml
@@ -115,7 +115,7 @@ jobs:
build-root-directory: android
execution-only-caches: true
- - name: Assemble instrumented test apk
+ - name: Assemble instrumented test apk (app)
uses: burrunan/gradle-cache-action@v1
with:
job-id: jdk11
@@ -124,11 +124,22 @@ jobs:
build-root-directory: android
execution-only-caches: true
+ - name: Assemble instrumented test apk (mockapi)
+ uses: burrunan/gradle-cache-action@v1
+ with:
+ job-id: jdk11
+ arguments: :test:mockapi:assemble
+ gradle-version: wrapper
+ build-root-directory: android
+ execution-only-caches: true
+
- name: Upload apks
uses: actions/upload-artifact@v3
with:
name: apks
- path: android/app/build/outputs/apk
+ path: |
+ android/app/build/outputs/apk
+ android/test/mockapi/build/outputs/apk
if-no-files-found: error
retention-days: 1
@@ -139,6 +150,8 @@ jobs:
needs: [build]
strategy:
fail-fast: false
+ matrix:
+ test-type: [app, mockapi]
steps:
- name: Checkout repository
uses: actions/checkout@v3
@@ -146,8 +159,11 @@ jobs:
- uses: actions/download-artifact@v3
with:
name: apks
- path: android/app/build/outputs/apk
+ path: android
- name: Run instrumented test script
shell: bash -ieo pipefail {0}
- run: ./android/scripts/run-instrumented-tests.sh app
+ env:
+ AUTO_FETCH_TEST_HELPER_APKS: true
+ run: |
+ ./android/scripts/run-instrumented-tests.sh ${{ matrix.test-type }}