From ba58490d89ed82fdca1a4c80f98a483220a21965 Mon Sep 17 00:00:00 2001 From: luke Date: Mon, 6 May 2024 18:31:17 +0000 Subject: [PATCH] Mission Model canary cron job (#1243) * 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 --- .github/workflows/canary.yml | 13 +++++++++++++ .github/workflows/test.yml | 8 +++++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/canary.yml 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