mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 02:23:19 -04:00
try again
This commit is contained in:
@@ -55,20 +55,14 @@ jobs:
|
|||||||
NOTIFY_E2E_TEST_URI: ${{ secrets.NOTIFY_E2E_TEST_URI }}
|
NOTIFY_E2E_TEST_URI: ${{ secrets.NOTIFY_E2E_TEST_URI }}
|
||||||
- name: Check coverage threshold
|
- name: Check coverage threshold
|
||||||
run: poetry run coverage report --fail-under=90
|
run: poetry run coverage report --fail-under=90
|
||||||
# - name: Health check
|
|
||||||
# if: (curl -u "$login" -v "$status_page") != *"ok"*
|
|
||||||
# uses: actions/github-script@v6
|
|
||||||
# with:
|
|
||||||
# script: core.setFailed('Health check failed')
|
|
||||||
|
|
||||||
- name: Health check
|
- name: Health check
|
||||||
run: |
|
run: |
|
||||||
response=$(curl -url ${{secrets.NOTIFY_E2E_TEST_URI}}_status -u "${{ secrets.NOTIFY_E2E_TEST_HTTP_AUTH_USER }}:${{ secrets.NOTIFY_E2E_TEST_HTTP_AUTH_PASSWORD }}")
|
response=$(curl -url ${{secrets.NOTIFY_E2E_TEST_URI}}_status -u "${{ secrets.NOTIFY_E2E_TEST_HTTP_AUTH_USER }}:${{ secrets.NOTIFY_E2E_TEST_HTTP_AUTH_PASSWORD }}")
|
||||||
if grep -q "ok" <<< "$response"; then
|
if grep -q "ok" <<< "$response"; then
|
||||||
|
echo "Health check passed"
|
||||||
|
else
|
||||||
echo "Health check failed"
|
echo "Health check failed"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
|
||||||
echo "Health check passed"
|
|
||||||
fi
|
fi
|
||||||
env:
|
env:
|
||||||
NOTIFY_E2E_AUTH_STATE_PATH: ${{ secrets.NOTIFY_E2E_AUTH_STATE_PATH }}
|
NOTIFY_E2E_AUTH_STATE_PATH: ${{ secrets.NOTIFY_E2E_AUTH_STATE_PATH }}
|
||||||
|
|||||||
Reference in New Issue
Block a user