Skip to content

Commit c1c952a

Browse files
committed
feat: ✨ add localstack test github action
1 parent 0b37497 commit c1c952a

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
- name: Start LocalStack
12+
run: |
13+
pip install localstack awscli-local[ver1]
14+
docker pull localstack/localstack
15+
localstack start -d
16+
17+
echo "Waiting for LocalStack startup..."
18+
localstack wait -t 30
19+
echo "Startup complete"
20+
- name: Deploy infrastructure
21+
run: |
22+
bin/deploy.sh
23+
- name: Run integration tests against LocalStack
24+
run: |
25+
pytest tests/integration
26+
- name: Show localstack logs
27+
if: always()
28+
run: |
29+
localstack logs

0 commit comments

Comments
 (0)