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 whole build folder as an artifact #139

Merged
merged 18 commits into from
Jul 2, 2020
Merged
Changes from 17 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
12 changes: 10 additions & 2 deletions .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
- uses: eskatos/gradle-command-action@v1
# run the build
- uses: eskatos/[email protected]
with:
arguments: ${{ matrix.task }}
# upload build output 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: wholebuild #testreports
path: build #build/reports/tests
marracuene marked this conversation as resolved.
Show resolved Hide resolved