File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,8 @@ jobs:
111111 needs : environment-set-up
112112 timeout-minutes : 10
113113 env :
114- LOCALSTACK_INTERNAL_DYNAMODB_ENDPOINT : http://localstack:4566/
114+ LOCALSTACK_INTERNAL_DYNAMODB_ENDPOINT : http://localhost:4566/
115+ RUNNING_LOCALSTACK_URL : http://localhost:4566/
115116 steps :
116117 - name : " Checkout code"
117118 uses : actions/checkout@v4
@@ -124,6 +125,11 @@ jobs:
124125 with :
125126 name : lambda
126127 path : dist/
128+ - name : Start LocalStack
129+ uses :
LocalStack/[email protected] 130+ with :
131+ image-tag : ' latest'
132+ install-awslocal : ' true'
127133 - name : " Run integration test"
128134 run : |
129135 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