Skip to content

Commit cd53889

Browse files
committed
fail at last step
1 parent d50ffda commit cd53889

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/build-validation.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ jobs:
5353
run: sleep 10
5454

5555
- name: Integration Tests with Gradle
56-
run: ./gradlew integrationTest
57-
continue-on-error: false
56+
run: ./gradlew integrationTest || echo "TEST_FAILED=true" >> $GITHUB_ENV
57+
continue-on-error: true
5858

5959
- name: Archive test report
6060
uses: actions/upload-artifact@v4
@@ -68,6 +68,10 @@ jobs:
6868
name: Package
6969
path: client/build/libs
7070

71+
- name: Fail the job if tests failed
72+
if: env.TEST_FAILED == 'true'
73+
run: exit 1
74+
7175
functions-e2e-tests:
7276

7377
needs: build

0 commit comments

Comments
 (0)