Skip to content

Commit 43bdfec

Browse files
committed
m
1 parent eebb22b commit 43bdfec

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

.github/workflows/library_rust_tests.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff 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-
uses: rrainn/[email protected]
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: |

0 commit comments

Comments
 (0)