Skip to content

Commit

Permalink
feat(ci): send nightly e2e test to loop (#593)
Browse files Browse the repository at this point in the history
* feat(ci): send nightly e2e test to loop

---------

Signed-off-by: Maksim Fedotov <[email protected]>
  • Loading branch information
nevermarine authored Dec 19, 2024
1 parent cbd6f3a commit fead0c5
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/nightly_e2e_tests_main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,5 @@ jobs:
working-directory: ./tests/e2e/
run: |
task run:ci -v
env:
LOOP_WEBHOOK_URL: ${{ secrets.LOOP_WEBHOOK_URL }}
34 changes: 32 additions & 2 deletions tests/e2e/Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,41 @@ tasks:
- d8
cmds:
- |
ginkgo \
RESULT=$(ginkgo \
--skip-file vm_test.go \
--skip-file ipam_test.go \
--skip-file disks_test.go \
-v
--no-color \
-v | grep --color=never \|)
if [[ $RESULT == SUCCESS!* ]]; then
RESULT_STATUS=":white_check_mark: SUCCESS!"
elif [[ $RESULT == FAIL!* ]]; then
RESULT_STATUS=":x: FAIL!"
else
RESULT_STATUS=":question: UNKNOWN"
fi
DATE=$(date +"%Y-%m-%d")
PASSED=$(echo "$RESULT" | grep -oP '\d+(?= Passed)')
FAILED=$(echo "$RESULT" | grep -oP '\d+(?= Failed)')
PENDING=$(echo "$RESULT" | grep -oP '\d+(?= Pending)')
SKIPPED=$(echo "$RESULT" | grep -oP '\d+(?= Skipped)')
SUMMARY="
### :dvp: **DVP $DATE Nightly e2e Tests**
**Branch:** \`$GITHUB_REF\`
**Status: $RESULT_STATUS**
- ${PASSED:-0} Passed
- ${FAILED:-0} Failed
- ${PENDING:-0} Pending
- ${SKIPPED:-0} Skipped
[: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
run:
desc: "Run e2e tests"
Expand Down

0 comments on commit fead0c5

Please sign in to comment.