Skip to content

Commit f73c075

Browse files
committed
feat: setup the composite action for LocalStack
1 parent 2e54ce4 commit f73c075

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

action.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: 'Setup LocalStack'
2+
description: 'Sets up LocalStack CLI in your GitHub Actions workflow.'
3+
author: 'Harsh Mishra'
4+
5+
branding:
6+
icon: 'code'
7+
color: 'white'
8+
9+
inputs:
10+
image-tag:
11+
description: 'Tag of the LocalStack Docker image to use'
12+
required: true
13+
default: 'latest'
14+
install-awslocal:
15+
description: 'Whether to install the `awslocal` CLI into the build environment'
16+
required: true
17+
default: 'true'
18+
19+
runs:
20+
using: "composite"
21+
steps:
22+
-
23+
run: |
24+
docker pull localstack/localstack:$IMAGE_TAG
25+
pip install localstack
26+
localstack start -d
27+
localstack wait -t 30
28+
if [ "$INSTALL_AWSLOCAL" = true ]; then
29+
pip install awscli-local[ver1]
30+
fi
31+
shell: bash
32+
env:
33+
IMAGE_TAG: "${{ inputs.image-tag }}"
34+
INSTALL_AWSLOCAL: "${{ inputs.install-awslocal }}"

0 commit comments

Comments
 (0)