Skip to content

Commit 93cdb40

Browse files
committed
Configure CI environment
1 parent 1feaef8 commit 93cdb40

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

action.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
}

0 commit comments

Comments
 (0)