From e7153d8f96b640ba3f312c091a2e61a027a1a4d5 Mon Sep 17 00:00:00 2001 From: Jolanda Verhoef Date: Thu, 9 Jun 2022 14:31:46 +0200 Subject: [PATCH] Fix instrumentation tests Change-Id: I19626079ce9c6dfb86788454c9607452b9eb7d09 --- .github/workflows/Build.yaml | 36 +++++++++++++++++++++++------------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/.github/workflows/Build.yaml b/.github/workflows/Build.yaml index 8923296bd..abae6b5ec 100644 --- a/.github/workflows/Build.yaml +++ b/.github/workflows/Build.yaml @@ -46,27 +46,37 @@ jobs: - name: Check lint run: ./gradlew lintDebug --stacktrace - - name: Build debug - run: ./gradlew assembleDebug --stacktrace - - - name: Build release - run: ./gradlew assembleRelease --stacktrace + - name: Build all build type and flavor permutations + run: ./gradlew assemble --stacktrace - name: Run local tests - run: ./gradlew testDebug --stacktrace + run: ./gradlew testDemoDebug testProdDebug --stacktrace + + - name: Upload Demo build outputs (APKs) + uses: actions/upload-artifact@v2 + with: + name: build-outputs-demo + path: app/demo/build/outputs - - name: Upload build outputs (APKs) + - name: Upload Prod build outputs (APKs) + uses: actions/upload-artifact@v2 + with: + name: build-outputs-prod + path: app/prod/build/outputs + + - name: Upload Demo build reports + if: always() uses: actions/upload-artifact@v2 with: - name: build-outputs - path: app/build/outputs + name: build-reports-demo + path: app/demo/build/reports - - name: Upload build reports + - name: Upload Prod build reports if: always() uses: actions/upload-artifact@v2 with: - name: build-reports - path: app/build/reports + name: build-reports-prod + path: app/prod/build/reports androidTest: needs: build @@ -107,7 +117,7 @@ jobs: disable-animations: true disk-size: 1500M heap-size: 512M - script: ./gradlew connectedAndroidTest -x :benchmark:connectedBenchmarkAndroidTest + script: ./gradlew connectedProdDebugAndroidTest -x :benchmark:connectedProdDebugBenchmarkAndroidTest - name: Upload test reports if: always()