-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(EWT-560): Dependency updates and improved reporting for failed …
…acceptance tests (#288)
- Loading branch information
Showing
6 changed files
with
35 additions
and
51 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 |
---|---|---|
|
@@ -39,58 +39,42 @@ jobs: | |
distribution: 'temurin' | ||
cache: 'gradle' | ||
- name: Validate Gradle wrapper | ||
uses: gradle/wrapper-validation-action@v1 | ||
uses: gradle/actions/wrapper-validation@v3 | ||
- name: Acceptance tests in sandbox | ||
env: | ||
TL_CLIENT_ID: ${{ secrets.tl_client_id }} | ||
TL_CLIENT_SECRET: ${{ secrets.tl_client_secret }} | ||
TL_SIGNING_KEY_ID: ${{ secrets.tl_signing_key_id }} | ||
TL_SIGNING_PRIVATE_KEY: ${{ secrets.tl_signing_private_key }} | ||
run: ./gradlew acceptance-tests | ||
- uses: actions/upload-artifact@v4 | ||
name: Upload test results as artifact | ||
if: always() | ||
with: | ||
name: test-results | ||
path: ./build/test-results | ||
retention-days: 1 | ||
notify-slack: | ||
needs: acceptance-tests | ||
runs-on: ubuntu-latest | ||
if: ${{ always() && contains(needs.*.result, 'failure') && inputs.notify_slack_on_failure == true }} | ||
steps: | ||
- name: Notify slack | ||
uses: slackapi/[email protected] | ||
- uses: actions/download-artifact@v4 | ||
name: Download test results artifacts | ||
with: | ||
name: test-results | ||
path: ./build/test-results | ||
- uses: dili91/[email protected] | ||
name: Generate Slack report from Junit results | ||
id: generate_slack_report | ||
with: | ||
title: ":fire: Acceptance tests are failing in Sandbox on the Java backend library!" | ||
include_skipped: true | ||
reports_pattern: './build/test-results/**/*.xml' | ||
- name: Send Slack report | ||
uses: slackapi/[email protected] | ||
with: | ||
payload: ${{steps.generate_slack_report.outputs.report}} | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.slack_webhook_url }} | ||
# type is required for custom payloads | ||
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK | ||
with: | ||
payload: | | ||
{ | ||
"blocks": [ | ||
{ | ||
"type": "section", | ||
"text": { | ||
"type": "mrkdwn", | ||
"text": ":fire: *Acceptance tests* are failing in *Sandbox* on our *Java* backend library! :java:" | ||
} | ||
}, | ||
{ | ||
"type": "actions", | ||
"elements": [ | ||
{ | ||
"type": "button", | ||
"text": { | ||
"type": "plain_text", | ||
"text": ":eyes: View on Github" | ||
}, | ||
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "image", | ||
"title": { | ||
"type": "plain_text", | ||
"text": "I don't like that", | ||
"emoji": true | ||
}, | ||
"image_url": "https://media.giphy.com/media/jOpLbiGmHR9S0/giphy.gif", | ||
"alt_text": "this is the worst" | ||
} | ||
] | ||
} | ||
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK |
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
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
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 |
---|---|---|
|
@@ -42,7 +42,7 @@ jobs: | |
distribution: 'temurin' | ||
cache: 'gradle' | ||
- name: Validate Gradle wrapper | ||
uses: gradle/wrapper-validation-action@v1 | ||
uses: gradle/actions/wrapper-validation@v3 | ||
- name: Create tag | ||
id: create_tag | ||
uses: mathieudutour/[email protected] | ||
|
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
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