Skip to content

Commit 93e2ea0

Browse files
authored
Use setup-localstack GitHub Action in CI (#19)
1 parent 09ff2b2 commit 93e2ea0

File tree

3 files changed

+17
-28
lines changed

3 files changed

+17
-28
lines changed

.github/workflows/cloudpod_release.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,13 @@ jobs:
3434
pip install -r requirements-dev.txt
3535
3636
- name: Start LocalStack
37+
uses: LocalStack/setup-localstack@main
38+
with:
39+
image-tag: ${{ inputs.release-tag || 'latest'}}
40+
use-pro: 'true'
41+
install-awslocal: 'true'
3742
env:
3843
LOCALSTACK_API_KEY: ${{ secrets.LOCALSTACK_API_KEY }}
39-
run: |
40-
pip install localstack awscli-local[ver1]
41-
docker pull localstack/localstack-pro:${{ inputs.release-tag || 'latest'}}
42-
# Start LocalStack in the background
43-
localstack start -d
44-
# Wait 30 seconds for the LocalStack container to become ready before timing out
45-
echo "Waiting for LocalStack startup..."
46-
localstack wait -t 30
47-
echo "Startup complete"
4844

4945
- name: Deploy infrastructure
5046
run: |

.github/workflows/integration-test.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,14 @@ jobs:
4242
pip install -r requirements-dev.txt
4343
4444
- name: Start LocalStack
45+
uses: LocalStack/setup-localstack@main
46+
with:
47+
image-tag: 'latest'
48+
use-pro: 'true'
49+
configuration: LS_LOG=trace
50+
install-awslocal: 'true'
4551
env:
4652
LOCALSTACK_API_KEY: ${{ secrets.LOCALSTACK_API_KEY }}
47-
run: |
48-
pip install localstack awscli-local[ver1]
49-
docker pull localstack/localstack-pro
50-
# Start LocalStack in the background
51-
LS_LOG=trace localstack start -d
52-
# Wait 30 seconds for the LocalStack container to become ready before timing out
53-
echo "Waiting for LocalStack startup..."
54-
localstack wait -t 30
55-
echo "Startup complete"
5653

5754
- name: Deploy infrastructure
5855
run: |

.github/workflows/test_cloudpods.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,15 @@ jobs:
5454
python-version: '3.9'
5555

5656
- name: Start LocalStack
57+
uses: LocalStack/setup-localstack@main
58+
with:
59+
image-tag: ${{ matrix.tag }}
60+
use-pro: 'true'
61+
install-awslocal: 'true'
5762
env:
58-
DEBUG: 1
63+
DEBUG: 1
5964
POD_LOAD_CLI_TIMEOUT: 300
6065
LOCALSTACK_API_KEY: ${{ secrets.LOCALSTACK_API_KEY }}
61-
run: |
62-
pip install localstack awscli-local[ver1]
63-
docker pull localstack/localstack-pro:${{ matrix.tag }}
64-
# Start LocalStack in the background
65-
localstack start -d
66-
# Wait 30 seconds for the LocalStack container to become ready before timing out
67-
echo "Waiting for LocalStack startup..."
68-
localstack wait -t 30
69-
echo "Startup complete"
7066

7167
- name: Inject Pod
7268
env:

0 commit comments

Comments
 (0)