Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If build fails, upload test reports as an artifact #137

Closed
wants to merge 7 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/gradle-build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,21 @@ jobs:
gradle:
strategy:
matrix:
task: [integrationTest, docTest]
task: [docTest, integrationTest]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 8
# run the build
- uses: eskatos/gradle-command-action@v1
with:
arguments: ${{ matrix.task }}
# upload build reports for later inspection, if the build failed
# N.B only applies to the last task in the matrix
- uses: actions/upload-artifact@v2
if: failure()
with:
name: testreports
path: build/reports/tests