-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (29 loc) · 993 Bytes
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
## 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 }}