Skip to content

Commit

Permalink
Fixed RIO queue test (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdemare authored Dec 7, 2024
1 parent 3913d5f commit 01e9615
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/test-rio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,26 +64,28 @@ jobs:
TRUSTSTORE_PASSWORD: ${{ secrets.TRUSTSTORE_PASSWORD }}
id: test_rio
run: |
set +e
lein mapper test-rio rio-mapper-dev.jomco.nl
echo "ERROR_STATUS=$?" >> "$GITHUB_OUTPUT"
set -e
continue-on-error: true
- name: Notify ok only if previous run failed.
env:
SLACK_URL: ${{ secrets.SLACK_URL }}
if: ${{ steps.test_rio.outputs.ERROR_STATUS == 0 && steps.last_status.outputs.last_status != 'success' }}
if: ${{ steps.test_rio.outputs.ERROR_STATUS == '0' && steps.last_status.outputs.last_status != 'success' }}
run: |
curl -q -H "Content-Type: application/json" -X POST -d '{"text": "RIO Queue is finally UP"}' $SLACK_URL
- name: Notify queue down
env:
SLACK_URL: ${{ secrets.SLACK_URL }}
if: ${{ steps.test_rio.outputs.ERROR_STATUS == 255 }}
if: ${{ steps.test_rio.outputs.ERROR_STATUS == '255' }}
run: |
curl -q -H "Content-Type: application/json" -X POST -d '{"text": "RIO Queue is DOWN"}' $SLACK_URL
exit 1
- name: Notify error
env:
SLACK_URL: ${{ secrets.SLACK_URL }}
if: ${{ steps.test_rio.outputs.ERROR_STATUS == 254 }}
if: ${{ steps.test_rio.outputs.ERROR_STATUS == '254' }}
run: |
curl -q -H "Content-Type: application/json" -X POST -d '{"text": "Error while checking RIO Queue"}' $SLACK_URL
exit 1

0 comments on commit 01e9615

Please sign in to comment.