-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (40 loc) · 1.03 KB
/
weekly_test.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
39
40
41
42
43
44
name: Weekly CDK and Terraform Test
on:
schedule:
- cron: '0 9 * * 1' # Run every Monday at 9:00 UTC
push:
branches:
- main
pull_request:
branches:
- '*'
env:
LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
CACHE_TYPE: gha
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 60
# Only run one test at a time because it seems to be much faster.
# Possible reason: lots of memory swapping.
concurrency: 1
strategy:
matrix:
test_name: [ awscdk, awscdktf, cloudfront-tf ]
steps:
# Checkout code
- name: Checkout code
uses: actions/checkout@v2
# Install prerequisites
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
# Start Localstack
- name: Test
env:
CI_TEST_NAME: ${{ matrix.test_name }}
run: |
# Unset stale org secret
printenv
unset LOCALSTACK_API_KEY
echo "Starting Localstack and running tests"
make run-ci-test