diff --git a/.github/workflows/canary.yml b/.github/workflows/canary.yml new file mode 100644 index 0000000000..feb6092759 --- /dev/null +++ b/.github/workflows/canary.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ee69bd268b..836d0866af 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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}}' @@ -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