daily-smoke-tests #773
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
name: daily-smoke-tests | |
on: | |
workflow_dispatch: # As per documentation, the colon is necessary even though no config is required. | |
schedule: | |
# Cron syntax is "minute[0-59] hour[0-23] date[1-31] month[1-12] day[0-6]". '*' is 'any value,' and multiple values | |
# can be specified with comma-separated lists. All times are UTC. | |
# So this expression means "run at 13:30 UTC every day". This time was chosen because it corresponds to | |
# 8:30AM CDT, meaning that any issues will be surfaced before the start of business. | |
- cron: "30 13 * * *" | |
jobs: | |
smoke-test: | |
uses: ./.github/workflows/run-tests.yml | |
with: | |
node-matrix: "[{version: 'lts/*', artifact: 'lts'}, {version: 'latest', artifact: 'latest'}]" | |
v4-smoke-test: | |
runs-on: macos-latest | |
steps: | |
- name: Invoke v4 smoke tests | |
uses: actions/github-script@v6 | |
with: | |
github-token: ${{ secrets.SVC_CLI_BOT_GITHUB_TOKEN }} | |
script: | | |
await github.rest.actions.createWorkflowDispatch({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
workflow_id: 'daily-smoke-tests.yml', | |
ref: 'dev-4' | |
}); |