File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-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,13 @@ 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+ run : >
134+ echo "AWS_ENDPOINT_URL=http://localhost.localstack.cloud:4566" >> $GITHUB_ENV
135+ echo "AWS_ACCESS_KEY_ID=test" >> $GITHUB_ENV
136+ echo "AWS_SECRET_ACCESS_KEY" >> $GITHUB_ENV
137+
127138 - name : Create Ephemeral Instance
128139 if : ${{ inputs.state-action == 'start' && inputs.state-backend == 'ephemeral' }}
129140 uses : jenseng/dynamic-uses@8bc24f0360175e710da532c4d19eafdbed489a06 # v1
@@ -170,4 +181,4 @@ runs:
170181 with : |-
171182 {
172183 "github-token": ${{ toJSON(inputs.github-token) }},
173- }
184+ }
You can’t perform that action at this time.
0 commit comments