From 68431d4a25c3f866fe486f76117283c8153b194e Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Wed, 10 Mar 2021 16:05:51 +0530 Subject: [PATCH] github: fix CI workflow to include screenshot tests Signed-off-by: Harsh Shandilya --- .github/workflows/pull_request.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 814c2fd8..6cdff2c9 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -21,18 +21,13 @@ jobs: - name: Copy CI gradle.properties run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties - - uses: burrunan/gradle-cache-action@03c71a8ba93d670980695505f48f49daf43704a6 - name: Run unit tests - with: - arguments: test --stacktrace - - - name: Run instrumentation tests + - name: Run unit and instrumentation tests uses: reactivecircus/android-emulator-runner@d2799957d660add41c61a5103e2fbb9e2889eb73 with: api-level: 30 target: google_apis script: | - ./gradlew :app:connectedDebugAndroidTest + ./gradlew test executeScreenshotTests --stacktrace - name: (Fail-only) upload test report if: failure()