File tree Expand file tree Collapse file tree 1 file changed +6
-25
lines changed
Expand file tree Collapse file tree 1 file changed +6
-25
lines changed Original file line number Diff line number Diff line change 1- name : Deploy on LocalStack
1+ name : Deploy on LocalStack
22
33on :
44 push :
1010 branches :
1111 - main
1212 schedule :
13- # “ At 00:00 on Sunday.”
13+ # " At 00:00 on Sunday."
1414 - cron : " 0 0 * * 0"
1515 workflow_dispatch :
1616
@@ -27,43 +27,24 @@ jobs:
2727 with :
2828 node-version : 22
2929
30- - name : Install CDK
31- run : |
32- npm install -g aws-cdk-local aws-cdk
33- cdklocal --version
34-
3530 - name : Install dependencies
3631 run : |
37- yarn
32+ npm install
3833
3934 - name : Start LocalStack
4035 env :
4136 LOCALSTACK_AUTH_TOKEN : ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
4237 run : |
4338 pip install localstack awscli-local[ver1]
44- pip install terraform-local
4539 docker pull localstack/localstack-pro:latest
46- # Start LocalStack in the background
4740 EXTRA_CORS_ALLOWED_ORIGINS=* DEBUG=1 LOCALSTACK_AUTH_TOKEN=$LOCALSTACK_AUTH_TOKEN localstack start -d
48- # Wait 30 seconds for the LocalStack container to become ready before timing out
4941 echo "Waiting for LocalStack startup..."
50- localstack wait -t 15
42+ localstack wait -t 30
5143 echo "Startup complete"
5244
53- - name : Deploy using CDK
54- run : |
55- cdklocal bootstrap aws://000000000000/us-east-1
56- cdklocal deploy --require-approval never --outputs-file cdk_outputs.json
57-
58- - name : List the resources
59- run : |
60- awslocal lambda list-functions
61- awslocal sqs list-queues
62- awslocal dynamodb list-tables
63-
64- - name : Run the tests
45+ - name : Run integration tests
6546 run : |
66- yarn integ-test
47+ ./run- integ-tests.sh
6748
6849 - name : Send a Slack notification
6950 if : failure() || github.event_name != 'pull_request'
You can’t perform that action at this time.
0 commit comments