-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure cron job to run 4 times a day
This can be used as a heart beat test to ensure the frontend and backend are always running, even when there are no changes in the app.
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: cron | ||
|
||
on: | ||
schedule: | ||
# runs four times a day (six a.m, noon, six p.m, and midnight - UTC) | ||
- cron: '0 12,18,00,06 * * *' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
api-tests-prod: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run API tests in production 🧪 | ||
uses: cypress-io/github-action@v6 | ||
env: | ||
API_URL_PROD: ${{ secrets.API_URL_PROD }} | ||
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | ||
with: | ||
command: npm run test:api:prod:cloud | ||
gui-tests-prod: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run GUI tests in production 🧪 | ||
uses: cypress-io/github-action@v6 | ||
env: | ||
API_URL_PROD: ${{ secrets.API_URL_PROD }} | ||
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | ||
with: | ||
command: npm run test:frontend:gui:prod:cloud |