We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7c5376 commit 538033cCopy full SHA for 538033c
.github/workflows/build-validation.yml
@@ -42,8 +42,20 @@ jobs:
42
uses: gradle/gradle-build-action@v2
43
44
- name: Build with Gradle
45
- run: ./gradlew build --stacktrace
+ run: ./gradlew build || echo "BUILD_FAILED=true" >> $GITHUB_ENV
46
+ continue-on-error: true
47
48
+ - name: Upload test reports if tests failed
49
+ if: env.BUILD_FAILED == 'true'
50
+ uses: actions/upload-artifact@v4
51
+ with:
52
+ name: Unit Test Reports
53
+ path: '**/build/reports/tests/test'
54
+ if-no-files-found: ignore # Prevents errors if no reports exist
55
+
56
+ - name: Fail the job if build failed
57
58
+ run: exit 1
59
60
# TODO: Move the sidecar into a central image repository
61
- name: Initialize Durable Task Sidecar
0 commit comments