Skip to content

Commit 80f03ba

Browse files
committed
run action with push to try
1 parent 6ebc271 commit 80f03ba

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/deploy.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,15 @@ on:
1111
types: [completed]
1212
# ... or manually.
1313
workflow_dispatch:
14+
15+
# remove later
16+
push:
17+
branches:
18+
- "feat/add-integration-tests"
1419

1520
jobs:
1621
# run a job on a successful `Workflow` run.
1722
on-successful-release:
18-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1923
runs-on: ubuntu-latest
2024
env:
2125
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION_DEPLOY }}
@@ -52,7 +56,7 @@ jobs:
5256
working-directory: integration_tests/cdk
5357
run: |
5458
source .deployment_venv/bin/activate
55-
cdk synth --debug --all --require-approval never
59+
npx cdk synth --debug --all --require-approval never
5660
deactivate
5761
5862
# deploys and grabs URLs from the output for later tests
@@ -61,7 +65,7 @@ jobs:
6165
working-directory: integration_tests/cdk
6266
run: |
6367
source .deployment_venv/bin/activate
64-
cdk deploy --ci --all --require-approval never
68+
npx cdk deploy --ci --all --require-approval never
6569
echo "ingestor_url=$(aws cloudformation describe-stacks --stack-name eoapi-template-demo-test-pgSTAC-infra --query "Stacks[0].Outputs[?starts_with(OutputKey, 'stacingestor')].OutputValue | [0]" --output text)" >> $GITHUB_OUTPUT
6670
echo "stac_api_url=$(aws cloudformation describe-stacks --stack-name eoapi-template-demo-test-pgSTAC-infra --query "Stacks[0].Outputs[?starts_with(OutputKey, 'pgstacapi')].OutputValue | [0]" --output text)" >> $GITHUB_OUTPUT
6771
echo "titiler_pgstac_api_url=$(aws cloudformation describe-stacks --stack-name eoapi-template-demo-test-pgSTAC-infra --query "Stacks[0].Outputs[?starts_with(OutputKey, 'titilerpgstac')].OutputValue | [0]" --output text)" >> $GITHUB_OUTPUT
@@ -91,5 +95,5 @@ jobs:
9195
working-directory: integration_tests/cdk
9296
run: |
9397
source .deployment_venv/bin/activate
94-
cdk destroy --ci --all --force
98+
npx cdk destroy --ci --all --force
9599
deactivate

0 commit comments

Comments
 (0)