File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,17 +25,23 @@ jobs:
2525 - name : Build with Gradle
2626 run : ./gradlew :flagship:assembleDebug
2727 - name : Unit tests
28- run : bash ./gradlew flagship:testJacocoUnitTestCoverage -i --stacktrace
29- - name : Get version
30- run : |
31- echo "FLAGSHIP_VERSION_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
32- - name : Generate report
33- run : bash ./gradlew flagship:createJacocoUnitTestCoverageReport
28+ id : unit_tests
29+ continue-on-error : true
30+ run : bash ./gradlew flagship:jacocoDebugCodeCoverage -i --stacktrace
31+ - name : Upload Test Report
32+ if : always()
33+ uses : actions/upload-artifact@v4
34+ with :
35+ name : test-report
36+ path : flagship/build/reports/tests/testDebugUnitTest/
37+ - name : Stop if tests failed
38+ if : steps.unit_tests.conclusion == 'failure'
39+ run : exit 1
3440 - name : Upload coverage to codecov
3541 uses : codecov/codecov-action@v5
3642 with :
3743 token : ${{ secrets.CODECOV_TOKEN }}
38- files : flagship/build/reports/coverage/test/ jacoco/report .xml
44+ files : flagship/build/reports/jacoco/jacocoDebugCodeCoverage/jacocoDebugCodeCoverage .xml
3945 - name : Build and Publish
4046 env :
4147 ORG_GRADLE_PROJECT_signingInMemoryKeyId : ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGINMEMORYKEYID }}
You can’t perform that action at this time.
0 commit comments