Skip to content

Commit 96b0139

Browse files
committed
feat: ✨ ✨ add localstack test github action
1 parent 0428377 commit 96b0139

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: test-integration-localstack
2+
3+
on:
4+
pull_request:
5+
branches: [master, feature]
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Start LocalStack
13+
run: |
14+
pip install localstack awscli-local[ver1]
15+
docker pull localstack/localstack
16+
localstack start -d
17+
18+
echo "Waiting for LocalStack startup..."
19+
localstack wait -t 30
20+
echo "Startup complete"
21+
- name: Deploy infrastructure
22+
run: |
23+
bin/deploy.sh
24+
- name: Run integration tests against LocalStack
25+
run: |
26+
python -m pytest tests/integration
27+
- name: Show localstack logs
28+
if: always()
29+
run: |
30+
localstack logs

0 commit comments

Comments
 (0)