We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1788e98 commit cba822cCopy full SHA for cba822c
1 file changed
.github/workflows/test.yml
@@ -98,6 +98,25 @@ jobs:
98
99
- name: Test
100
run: gradle test && gradle jacocoTestReport
101
+ continue-on-error: true
102
+
103
+ - name: Archive test reports if tests fail
104
+ if: failure()
105
+ run: |
106
+ zip -r test-reports.zip build/reports/tests/test
107
+ echo "##[error]Tests failed, see the report"
108
+ continue-on-error: false
109
110
+ - name: Upload Test Reports
111
112
+ uses: actions/upload-artifact@v3
113
+ with:
114
+ name: test-reports
115
+ path: test-reports.zip
116
117
+ - name: Fail the job if tests failed
118
119
+ run: exit 1
120
121
- name: Codecov
122
run: bash <(curl -s https://codecov.io/bash) -t ${{ secrets.CODECOV_TOKEN }}
0 commit comments