From 44738050683ee0f2a6ad27f7edfc7d7a73a2b5a0 Mon Sep 17 00:00:00 2001 From: Fred Adeniyi Date: Mon, 14 Jul 2025 08:16:18 +0800 Subject: [PATCH] feat(ci): add daily health check workflow This commit introduces a new GitHub Actions workflow (`healthcheck.yml`) to perform periodic health checks on the deployed application. The workflow runs once every 24 hours, sending a request to the application URL. This helps to proactively monitor application uptime and will fail if the site is down, providing a notification of the issue. --- .github/workflows/healthcheck.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/healthcheck.yml diff --git a/.github/workflows/healthcheck.yml b/.github/workflows/healthcheck.yml new file mode 100644 index 0000000..fab3a02 --- /dev/null +++ b/.github/workflows/healthcheck.yml @@ -0,0 +1,16 @@ +name: Health Check + +on: + schedule: + # Runs once a day at midnight UTC. + - cron: '0 0 * * *' + +jobs: + health_check_job: + runs-on: ubuntu-24.04 + name: Check health of the deployed application + steps: + - name: URL Health Check + uses: jtalk/url-health-check-action@v4 + with: + url: https://pokedex-app-6035.fly.dev/ \ No newline at end of file