@@ -8,10 +8,8 @@ name: Test SimBank
88on :
99 # This workflow_call is used after the Main Build of Simplatform.
1010 workflow_call :
11- # This workflow_dispatch allows this workflow to be called by a
12- # scheduled regression run in the Automation repository. It also
13- # allows this workflow to be called by pressing 'Run Workflow'.
14- workflow_dispatch :
11+ schedule :
12+ - cron : " 0 6 * * *" # Daily at 06:00
1513
1614env :
1715 NAMESPACE : ${{ github.repository_owner }}
10199
102100 # If this workflow was called by the daily regression test run, build the code.
103101 - name : Build SimBank using local build script
104- if : ${{ github.event_name == 'workflow_dispatch ' }}
102+ if : ${{ github.event_name == 'schedule ' }}
105103 run : |
106104 ./build-locally.sh --skip-docker --skip-secrets
107105
@@ -157,15 +155,15 @@ jobs:
157155 # Skip these steps for forks. Only report results if this workflow was
158156 # called from a regression run as Main builds run multiple times a day.
159157 - name : Combine test reports
160- if : ${{ github.repository_owner == 'galasa-dev' && github.event_name == 'workflow_dispatch ' }}
158+ if : ${{ github.repository_owner == 'galasa-dev' && github.event_name == 'schedule ' }}
161159 run : |
162160 jq -s '{ tests: map(.tests[]) }' ${{ github.workspace }}/.galasa/test-1.json ${{ github.workspace }}/.galasa/test-2.json ${{ github.workspace }}/.galasa/test-3.json > ${{ github.workspace }}/.galasa/tests.json
163161
164162 # The test report must be sent to Slack in the next job that uses the ubuntu-latest runner.
165163 # We need to run a Docker image to communicate with the Slack webhook and the macos-latest
166164 # runner does not have `docker` installed. Upload the report and download in the next job.
167165 - name : Upload combined test report
168- if : ${{ github.repository_owner == 'galasa-dev' && github.event_name == 'workflow_dispatch ' }}
166+ if : ${{ github.repository_owner == 'galasa-dev' && github.event_name == 'schedule ' }}
169167 uses : actions/upload-artifact@v4
170168 with :
171169 name : tests.json
@@ -177,7 +175,7 @@ jobs:
177175
178176 # Skip this job for forks. Only report results if this workflow was
179177 # called from a regression run as Main builds run multiple times a day.
180- if : ${{ github.repository_owner == 'galasa-dev' && github.event_name == 'workflow_dispatch ' }}
178+ if : ${{ github.repository_owner == 'galasa-dev' && github.event_name == 'schedule ' }}
181179
182180 needs : [build-and-run-simbank-tests]
183181
0 commit comments