Run Tests #235
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
## YAML Template. | |
name: Run Tests | |
on: | |
workflow_dispatch: | |
schedule: | |
# * is a special character in YAML so you have to quote this string | |
- cron: '30 17 * * *' | |
permissions: | |
id-token: write # This is required for requesting the JWT | |
contents: read # This is required for actions/checkout | |
jobs: | |
# Run a couple tests to make sure ChatGPT is responding and able to make Square calls | |
run-tests: | |
if: ${{ vars.RUN_TESTS }} | |
strategy: | |
matrix: | |
region: [ us-east-1, us-west-2 ] | |
runs-on: ubuntu-latest | |
environment: "${{ matrix.region }}-tests" | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Execute Tests | |
uses: ./.github/actions/test | |
with: | |
region: ${{ matrix.region }} | |
stack-name: ${{ vars.STACK_NAME || 'chatgpt-square-ivr' }} | |
aws-role: ${{ secrets.AWS_ROLE_TO_ASSUME }} | |
session-id: ${{ github.run_id }}-${{ github.run_attempt }} | |