Skip to content

Commit 2d20015

Browse files
committed
add test summary
1 parent bc11443 commit 2d20015

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/e2e-test.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ jobs:
172172
process-upload-report:
173173
runs-on: ubuntu-latest
174174
needs: [integration-tests]
175-
if: always() && github.repository == 'linode/linode_api4-python' # Run even if integration tests fail and only on main repository
175+
if: always() #&& github.repository == 'linode/linode_api4-python' # Run even if integration tests fail and only on main repository
176176

177177
steps:
178178
- name: Checkout code
@@ -217,6 +217,9 @@ jobs:
217217
filename=$(ls | grep -E '^[0-9]{12}_sdk_test_report\.xml$')
218218
python3 e2e_scripts/tod_scripts/generate_test_summary.py "${filename}"
219219
220+
- name: Verify Environment Variable
221+
run: echo "$TEST_SUMMARY"
222+
220223
notify-slack:
221224
runs-on: ubuntu-latest
222225
needs: [integration-tests]
@@ -234,7 +237,7 @@ jobs:
234237
- type: section
235238
text:
236239
type: mrkdwn
237-
text: ":rocket: *${{ github.workflow }} Completed in: ${{ github.repository }}* :white_check_mark:"
240+
text: ":rocket: *${{ github.workflow }} Completed in: ${{ github.repository }}* ${{ needs.integration-tests.result == 'success' && ':white_check_mark:' || ':failed: Build Failed' }}"
238241
- type: divider
239242
- type: section
240243
fields:

0 commit comments

Comments
 (0)