File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,10 @@ inputs:
5151 description : ' Skip stopping LocalStack Ephemeral Instance'
5252 required : false
5353 default : ' true'
54+ skip-configure-environment :
55+ description : Do not configure the CI environment to talk to LocalStack by default
56+ required : false
57+ default : " "
5458 state-action :
5559 description : |
5660 Manage LocalStack state
@@ -124,6 +128,14 @@ runs:
124128 "skip-wait": ${{ toJSON(inputs.skip-wait) }}
125129 }
126130
131+ - name : Configure CI environment to use LocalStack
132+ if : ${{ inputs.skip-configure-environment != 'true' }}
133+ shell : bash
134+ run : |
135+ echo "AWS_ENDPOINT_URL=http://localhost.localstack.cloud:4566" >> $GITHUB_ENV
136+ echo "AWS_ACCESS_KEY_ID=test" >> $GITHUB_ENV
137+ echo "AWS_SECRET_ACCESS_KEY=test" >> $GITHUB_ENV
138+
127139 - name : Create Ephemeral Instance
128140 if : ${{ inputs.state-action == 'start' && inputs.state-backend == 'ephemeral' }}
129141 uses : jenseng/dynamic-uses@8bc24f0360175e710da532c4d19eafdbed489a06 # v1
@@ -161,7 +173,7 @@ runs:
161173 "ci-project": ${{ toJSON(inputs.ci-project) }},
162174 "include-preview": ${{ inputs.include-preview != '' && toJSON(inputs.include-preview) || toJSON(env.include-preview) }}
163175 }
164-
176+
165177 - name : Stop Ephemeral Instance
166178 if : ${{ (inputs.skip-ephemeral-stop == 'false' || inputs.state-action == 'stop') && inputs.state-backend == 'ephemeral' }}
167179 uses : jenseng/dynamic-uses@8bc24f0360175e710da532c4d19eafdbed489a06 # v1
You can’t perform that action at this time.
0 commit comments