Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
Merge pull request #184 from smartive-education/feature/health-check-…
Browse files Browse the repository at this point in the history
…workflow-updates

fix(Smoke/Health): set cron to 6 hours
  • Loading branch information
tomschall authored Jun 19, 2023
2 parents 599100c + e37d6c1 commit a165a56
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
25 changes: 22 additions & 3 deletions .github/workflows/healthcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: System Health Check

on:
schedule:
- cron: '*/5 * * * *'
- cron: '0 */6 * * *'

jobs:
test:
name: System Health Check
name: Reliability Tests
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
Expand All @@ -21,7 +21,26 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Install Playwright Browsers
run: npx playwright install --with-deps
run: npx playwright install chromium

- name: Run health check
run: npm run test:healthcheck

- name: Create GitHub issue for health/smoke tests
if: failure()
uses: dacbd/create-issue-action@main
with:
token: ${{ github.token }}
labels: reliability
title: Reliability tests failed
body: |
### Your system not working properly. Please check your endpoints:
[Failed Run](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})
[Codebase](https://github.com/${{ github.repository }}/tree/feature/${{ github.base_ref }})
Workflow name - `${{ github.workflow }}`
Job - `${{ github.job }}`
status - `${{ job.status }}`
assignees: webrooster, tomschall
1 change: 0 additions & 1 deletion __e2e__/checks/HealthCheck.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ test.describe('@healthcheck', () => {
);

const apiResponse = await response.json();
console.log(apiResponse.data);

expect(response.status()).toBe(200);
expect(apiResponse.data[0].id).not.toBe('');
Expand Down

0 comments on commit a165a56

Please sign in to comment.