From 4be9b03ac6e6c5f77782161585435e6f8b4112b8 Mon Sep 17 00:00:00 2001 From: arkon Date: Thu, 19 May 2022 13:44:13 -0400 Subject: [PATCH] Combine build and test tasks in workflows --- .github/workflows/build_pull_request.yml | 9 ++------- .github/workflows/build_push.yml | 9 ++------- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build_pull_request.yml b/.github/workflows/build_pull_request.yml index 3be100b668..f25d210d11 100644 --- a/.github/workflows/build_pull_request.yml +++ b/.github/workflows/build_pull_request.yml @@ -34,12 +34,7 @@ jobs: mkdir -p ~/.gradle cp .github/runner-files/ci-gradle.properties ~/.gradle/gradle.properties - - name: Build app + - name: Build app and run unit tests uses: gradle/gradle-command-action@v2 with: - arguments: assembleStandardRelease - - - name: Run unit tests - uses: gradle/gradle-command-action@v2 - with: - arguments: test + arguments: assembleStandardRelease testStandardReleaseUnitTest \ No newline at end of file diff --git a/.github/workflows/build_push.yml b/.github/workflows/build_push.yml index 4868fc9d2d..2bf98b0417 100644 --- a/.github/workflows/build_push.yml +++ b/.github/workflows/build_push.yml @@ -35,15 +35,10 @@ jobs: mkdir -p ~/.gradle cp .github/runner-files/ci-gradle.properties ~/.gradle/gradle.properties - - name: Build app + - name: Build app and run unit tests uses: gradle/gradle-command-action@v2 with: - arguments: assembleStandardRelease - - - name: Run unit tests - uses: gradle/gradle-command-action@v2 - with: - arguments: test + arguments: assembleStandardRelease testStandardReleaseUnitTest # Sign APK and create release for tags