Explorar o código

Combine build and test tasks in workflows

arkon %!s(int64=2) %!d(string=hai) anos
pai
achega
4be9b03ac6
Modificáronse 2 ficheiros con 4 adicións e 14 borrados
  1. 2 7
      .github/workflows/build_pull_request.yml
  2. 2 7
      .github/workflows/build_push.yml

+ 2 - 7
.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

+ 2 - 7
.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