Skip to content

Commit

Permalink
fix(ci): fix false positive e2e CI runs (#603)
Browse files Browse the repository at this point in the history
Add EXIT_CODE env for GitHub Actions to use as indicator of run's success

Signed-off-by: Maksim Fedotov <[email protected]>
  • Loading branch information
nevermarine authored Dec 23, 2024
1 parent b08ac10 commit d7b875c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/e2e/Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,13 @@ tasks:
-v | tee /dev/stderr | grep --color=never -E 'FAIL!|SUCCESS!')
if [[ $RESULT == SUCCESS!* ]]; then
RESULT_STATUS=":white_check_mark: SUCCESS!"
EXIT_CODE=0
elif [[ $RESULT == FAIL!* ]]; then
RESULT_STATUS=":x: FAIL!"
EXIT_CODE=1
else
RESULT_STATUS=":question: UNKNOWN"
EXIT_CODE=1
fi
DATE=$(date +"%Y-%m-%d")
Expand All @@ -88,6 +91,7 @@ tasks:
[:link: GitHub Actions Output]($GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID)
"
curl -XPOST -H 'Content-Type: application/json' -d "{\"text\": \"${SUMMARY}\"}" $LOOP_WEBHOOK_URL
exit $EXIT_CODE
run:
desc: "Run e2e tests"
Expand Down

0 comments on commit d7b875c

Please sign in to comment.