Skip to content

Commit 3507b27

Browse files
fails on test
1 parent 0a32ad0 commit 3507b27

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/e2e-test.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ jobs:
4242
id: run_tests
4343
run: |
4444
MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} surefire:test -pl :spring-app -DskipTests=false"
45-
mvn $MVN_ARGS "-Daicore.landscape=${{ matrix.environment }}" | tee mvn_output.log # tee writes to both the console and a file
45+
(mvn $MVN_ARGS "-Daicore.landscape=${{ matrix.environment }}"; echo $? > mvn_exit_code) | tee mvn_output.log # tee writes to both the console and a file
46+
exit_code=$(cat mvn_exit_code)
47+
exit $exit_code
4648
4749
awk '/Results:/, /----/' mvn_output.log > test_error.log || true # true ensures the step doesn't fail if no match is found.
4850
ERROR_MSG=$(cat test_error.log | tail +4 | head -n -4 | sed ':a;N;$!ba;s/\n/\\n/g') # Slack formatting

0 commit comments

Comments
 (0)