Skip to content

Commit

Permalink
Mission Model canary cron job (#1243)
Browse files Browse the repository at this point in the history
* update `test.yml` workflow to be called from other workflows with parameters

* add new canary workflow that calls `test.yml` in a new GH Actions environment once an hour

* remove testing triggers
  • Loading branch information
skovati authored May 6, 2024
1 parent 9a88041 commit ba58490
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/workflows/canary.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Mission Model Canary

on:
workflow_dispatch:
schedule:
- cron: '0 * * * *' # every hour at the top of the hour

jobs:
canary:
uses: ./.github/workflows/test.yml
with:
env: 'canary'
secrets: inherit
8 changes: 7 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ on:
tags:
- v*
workflow_dispatch:
workflow_call:
inputs:
env:
description: 'Github Actions environment that the test workflow should run under'
type: string
required: false

env:
AERIE_PASSWORD: '${{secrets.AERIE_PASSWORD}}'
Expand Down Expand Up @@ -54,7 +60,7 @@ jobs:
**/unit-test-results
e2e-test:
runs-on: ubuntu-latest
environment: test-workflow
environment: ${{ inputs.env || 'test-workflow' }}
steps:
- name: Checkout Repo (UI)
uses: actions/checkout@v4
Expand Down

0 comments on commit ba58490

Please sign in to comment.