Actually run all tests on GitHub Actions

This commit is contained in:
ByteHamster 2022-01-22 16:12:49 +01:00
parent 2243ca372e
commit 147c996f60
2 changed files with 5 additions and 2 deletions

View File

@ -72,12 +72,15 @@ jobs:
matrix:
include:
- variant: "PlayDebug"
base-variant: "Debug"
execute-tests: true
upload-artifact: true
- variant: "PlayRelease"
base-variant: "Release"
execute-tests: true
upload-artifact: false
- variant: "FreeRelease"
base-variant: "Release"
execute-tests: false
upload-artifact: false
steps:
@ -95,7 +98,7 @@ jobs:
run: ./gradlew assemble${{ matrix.variant }}
- name: Test
if: matrix.execute-tests == true
run: ./gradlew test${{ matrix.variant }}UnitTest
run: ./gradlew test${{ matrix.variant }}UnitTest test${{ matrix.base-variant }}UnitTest
- uses: actions/upload-artifact@v2
if: matrix.upload-artifact == true
with:

View File

@ -3,7 +3,7 @@
set -o pipefail
runTests() {
./gradlew connectedPlayDebugAndroidTest \
./gradlew connectedPlayDebugAndroidTest connectedDebugAndroidTest \
-Pandroid.testInstrumentationRunnerArguments.notAnnotation=de.test.antennapod.IgnoreOnCi \
| grep -v "V/InstrumentationResultParser: INSTRUMENTATION_STATUS"
}