-
Notifications
You must be signed in to change notification settings - Fork 404
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
15 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -195,13 +195,13 @@ jobs: | |
run: | | ||
printf '%s\n' "cd screenshots/${SCREENSHOTS_GEN_FOLDER}" 'put -r corteza-e2e-cypress/cypress/screenshots/*' | sftp -q -o "StrictHostKeyChecking no" -i ${RELEASE_CRUST_KEY_FILE} ${RELEASE_CRUST_SFTP_URI} | ||
notify: | ||
notify-failure: | ||
needs: [ server-client-setup ] | ||
runs-on: ubuntu-20.04 | ||
if: always() | ||
if: failure() | ||
steps: | ||
- name: Send message on successful testing results | ||
if: success() | ||
- name: Send message on failed testing results | ||
if: failure() | ||
uses: fadenb/[email protected] | ||
env: | ||
E2E_REPORTS_USER: ${{ secrets.E2E_REPORTS_USER }} | ||
|
@@ -211,12 +211,19 @@ jobs: | |
token: ${{ secrets.MATRIX_ACCESS_TOKEN }} | ||
channel: ${{ secrets.MATRIX_ROOM_ID }} | ||
message: | | ||
✅ E2e tests passed 🙌 🎉 | ||
❌ E2e tests did not pass, screenshots provided | ||
🔗 https://${{ secrets.E2E_REPORTS_USER }}:${{ secrets.E2E_REPORTS_PASS }}@releases.cortezaproject.org/e2e-reports/ | ||
- name: Send message on failed testing results | ||
if: failure() | ||
📷 https://${{ secrets.E2E_REPORTS_USER }}:${{ secrets.E2E_REPORTS_PASS }}@releases.cortezaproject.org/e2e-reports/screenshots/${{ env.SCREENSHOTS_GEN_FOLDER }}/ | ||
notify-success: | ||
needs: [ server-client-setup ] | ||
runs-on: ubuntu-20.04 | ||
if: success() | ||
steps: | ||
- name: Send message on successful testing results | ||
if: success() | ||
uses: fadenb/[email protected] | ||
env: | ||
E2E_REPORTS_USER: ${{ secrets.E2E_REPORTS_USER }} | ||
|
@@ -226,8 +233,6 @@ jobs: | |
token: ${{ secrets.MATRIX_ACCESS_TOKEN }} | ||
channel: ${{ secrets.MATRIX_ROOM_ID }} | ||
message: | | ||
❌ E2e tests did not pass, screenshots provided | ||
✅ E2e tests passed 🙌 🎉 | ||
🔗 https://${{ secrets.E2E_REPORTS_USER }}:${{ secrets.E2E_REPORTS_PASS }}@releases.cortezaproject.org/e2e-reports/ | ||
📷 https://${{ secrets.E2E_REPORTS_USER }}:${{ secrets.E2E_REPORTS_PASS }}@releases.cortezaproject.org/e2e-reports/screenshots/${{ env.SCREENSHOTS_GEN_FOLDER }}/ |