File tree Expand file tree Collapse file tree 2 files changed +6
-15
lines changed Expand file tree Collapse file tree 2 files changed +6
-15
lines changed Original file line number Diff line number Diff line change 1
1
name : Test deployment
2
2
3
3
on :
4
+ pull_request :
4
5
merge_group :
6
+ branches : [ main ]
5
7
6
8
jobs :
7
9
build_package_and_deploy :
54
56
cd integration_tests/cdk
55
57
npx cdk synth --debug --all --require-approval never
56
58
57
- # deploy the stack and grab URLs for testing
59
+ # deploy the stack
58
60
npx cdk deploy --ci --all --require-approval never
59
- echo "ingestor_url=$(aws cloudformation describe-stacks --stack-name eoapi-cdk-integration-test-pgSTAC-infra --query "Stacks[0].Outputs[?starts_with(OutputKey, 'stacingestor')].OutputValue | [0]" --output text)" >> $GITHUB_OUTPUT
60
- echo "stac_api_url=$(aws cloudformation describe-stacks --stack-name eoapi-cdk-integration-test-pgSTAC-infra --query "Stacks[0].Outputs[?starts_with(OutputKey, 'pgstacapi')].OutputValue | [0]" --output text)" >> $GITHUB_OUTPUT
61
- echo "titiler_pgstac_api_url=$(aws cloudformation describe-stacks --stack-name eoapi-cdk-integration-test-pgSTAC-infra --query "Stacks[0].Outputs[?starts_with(OutputKey, 'titilerpgstac')].OutputValue | [0]" --output text)" >> $GITHUB_OUTPUT
62
61
deactivate
63
62
cd -
64
63
@@ -67,11 +66,11 @@ jobs:
67
66
run : |
68
67
cd integration_tests/cdk
69
68
# run this only if we find a 'cdk.out' directory, which means there might be things to tear down
69
+ # see https://github.com/aws/aws-cdk/issues/24946
70
+ # rm -f cdk.out/synth.lock
70
71
if [ -d "cdk.out" ]; then
71
72
cd -
72
73
source .deployment_venv/bin/activate
73
74
cd integration_tests/cdk
74
- # see https://github.com/aws/aws-cdk/issues/24946
75
- rm -f cdk.out/synth.lock
76
- npx cdk destroy --ci --all --force
75
+ npx cdk destroy --output cdk-destroy.out --ci --all --force
77
76
fi
Original file line number Diff line number Diff line change 1
1
aws-cdk-lib >= 2.99.1
2
- aws_cdk.aws_cognito_identitypool_alpha >= 2.99.0a0
3
- aws-cdk.aws-apigatewayv2-alpha >= 2.99.0a0
4
2
constructs >= 10.0.0 ,< 11.0.0
5
3
pydantic == 2.0.2
6
4
pydantic-settings == 2.0.1
7
- black == 22.3.0
8
- boto3 == 1.24.15
9
- boto3-stubs [cognito-idp,cognito-identity ]
10
- flake8 == 4.0.1
11
- click == 8.1.3
12
- requests == 2.28.0
13
5
python-dotenv == 1.0.0
14
6
pyyaml == 6.0
15
7
types-PyYAML == 6.0.12.10
You can’t perform that action at this time.
0 commit comments