add action that sends test summary to step summary #224
Workflow file for this run
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
name: Cleanup Cancel Test | |
on: | |
pull_request: | |
jobs: | |
can_cancel_cleanup: | |
name: Can Cleanup and Cancel Cleanup | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Code | |
uses: actions/checkout@v4 | |
- name: cleanup with cancel | |
if: always() | |
id: did_skip | |
uses: ./chainlink-testing-framework/cleanup | |
with: | |
triggered_by: "blank" | |
should_cleanup: "false" | |
- name: Verify the cleanup did not run | |
run: | | |
if [ "${{ steps.did_skip.outputs.did_skip_clean }}" != "true" ]; then | |
echo "Failed to skip the cleanup" | |
exit 1 | |
fi | |
- name: cleanup without cancel | |
if: always() | |
id: did_not_skip | |
uses: ./chainlink-testing-framework/cleanup | |
with: | |
triggered_by: "blank" | |
should_cleanup: "true" | |
- name: Verify the cleanup did run | |
run: | | |
if [ "${{ steps.did_not_skip.outputs.did_skip_clean }}" != "false" ]; then | |
echo "Failed to run the cleanup" | |
exit 1 | |
fi |