Skip to content

Run backend API endpoint healthchecks #113746

Run backend API endpoint healthchecks

Run backend API endpoint healthchecks #113746

Workflow file for this run

name: Run backend API endpoint healthchecks
on:
schedule:
- cron: '*/15 * * * *'
jobs:
healthcheck:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run API checks
run: cd healthchecks && npm install && REVITA_USER_TOKEN="${{ secrets.REVITA_USER_TOKEN }}" npm run test
- name: Report failure
if: failure()
run: curl -d '{"text":"Backend healthcheck failed"}' -H "Content-Type:application/json" -X POST ${{ secrets.REVITA_SLACK_WEBHOOK }}