File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ jobs:
111111 needs : environment-set-up
112112 timeout-minutes : 10
113113 env :
114- LOCALSTACK_INTERNAL_DYNAMODB_ENDPOINT : http://localstack:4566/
114+ RUNNING_LOCALSTACK_URL : http://localstack:4566/
115115 steps :
116116 - name : " Checkout code"
117117 uses : actions/checkout@v4
@@ -124,6 +124,11 @@ jobs:
124124 with :
125125 name : lambda
126126 path : dist/
127+ - name : Start LocalStack
128+ uses :
LocalStack/[email protected] 129+ with :
130+ image-tag : ' latest'
131+ install-awslocal : ' true'
127132 - name : " Run integration test"
128133 run : |
129134 make test-integration
Original file line number Diff line number Diff line change 2020
2121@pytest .fixture (scope = "session" )
2222def localstack (docker_ip , docker_services ) -> URL :
23+ if url := os .getenv ("RUNNING_LOCALSTACK_URL" , None ):
24+ logger .info ("localstack already running on %s" , url )
25+ return URL (url )
2326 logger .info ("Starting localstack" )
2427 port = docker_services .port_for ("localstack" , 4566 )
2528 url = URL (f"http://{ docker_ip } :{ port } " )
You can’t perform that action at this time.
0 commit comments