Skip runnig frontend testing for halth api check in github action

This commit is contained in:
lalitdeore12@gmail.com
2025-03-11 16:21:50 +05:30
parent e48d5b717e
commit 96445a065f
+23 -23
View File
@@ -63,12 +63,12 @@ jobs:
exit 1 exit 1
fi fi
- name: Run Selenium testing for frontend # - name: Run Selenium testing for frontend
run: | # run: |
cd $GITHUB_WORKSPACE/frontend # cd $GITHUB_WORKSPACE/frontend
# write some log to see the current directory # # write some log to see the current directory
chmod +x frontend-testing.sh # chmod +x frontend-testing.sh
./frontend-testing.sh # ./frontend-testing.sh
- name: Get the API key and run a health check - name: Get the API key and run a health check
id: health_check id: health_check
@@ -113,21 +113,21 @@ jobs:
echo "Health endpoint check failed. Response did not meet expected criteria." echo "Health endpoint check failed. Response did not meet expected criteria."
exit 1 exit 1
fi fi
notify: # notify:
needs: build # needs: build
if: failure() # if: failure()
runs-on: ubuntu-latest # runs-on: ubuntu-latest
steps: # steps:
- name: Send Twilio Alert # - name: Send Twilio Alert
run: | # run: |
WORKFLOW_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" # WORKFLOW_URL="https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
MESSAGE="🚨 Shuffle Workflow Failed! # MESSAGE="🚨 Shuffle Workflow Failed!
Repository: ${{ github.repository }} # Repository: ${{ github.repository }}
Branch: ${{ github.ref_name }} # Branch: ${{ github.ref_name }}
Workflow URL: $WORKFLOW_URL" # Workflow URL: $WORKFLOW_URL"
curl -s -X POST https://api.twilio.com/2010-04-01/Accounts/${{ secrets.TWILIO_ACCOUNT_SID }}/Messages.json \ # curl -s -X POST https://api.twilio.com/2010-04-01/Accounts/${{ secrets.TWILIO_ACCOUNT_SID }}/Messages.json \
--data-urlencode "To=${{ secrets.TWILIO_TO_NUMBER }}" \ # --data-urlencode "To=${{ secrets.TWILIO_TO_NUMBER }}" \
--data-urlencode "From=${{ secrets.TWILIO_FROM_NUMBER }}" \ # --data-urlencode "From=${{ secrets.TWILIO_FROM_NUMBER }}" \
--data-urlencode "Body=$MESSAGE" \ # --data-urlencode "Body=$MESSAGE" \
-u "${{ secrets.TWILIO_ACCOUNT_SID }}:${{ secrets.TWILIO_AUTH_TOKEN }}" > /dev/null # -u "${{ secrets.TWILIO_ACCOUNT_SID }}:${{ secrets.TWILIO_AUTH_TOKEN }}" > /dev/null