File tree Expand file tree Collapse file tree 1 file changed +20
-5
lines changed
Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -34,12 +34,27 @@ jobs:
3434 env :
3535 RUST_MIN_STACK : 838860800
3636 steps :
37- - name : Setup DynamoDB Local
38- if : matrix.library == 'TestVectors'
39- 37+ - name : Install Java
38+ uses : actions/setup-java@v5
4039 with :
41- port : 8000
42- cors : " *"
40+ distribution : ' corretto'
41+ java-version : ' 11' # DynamoDB Local requires Java
42+
43+ - name : Download DynamoDB Local
44+ run : |
45+ wget https://s3.amazonaws.com/dynamodb-local/dynamodb_local_latest.tar.gz
46+ tar -xf dynamodb_local_latest.tar.gz
47+
48+ - name : Start DynamoDB Local
49+ run : java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb &
50+ # The & runs the Java process in the background.
51+
52+ - name : Wait for DynamoDB Local
53+ run : |
54+ echo "Waiting for DynamoDB Local to start..."
55+ until curl -s http://localhost:8000; do
56+ sleep 1
57+ done
4358
4459 - name : Support longpaths on Git checkout
4560 run : |
You can’t perform that action at this time.
0 commit comments