@@ -37,16 +37,16 @@ jobs:
3737 - name: Install Java
3838 uses: actions/setup-java@v5
3939 with:
40- distribution : ' corretto'
41- java-version : ' 11 ' # DynamoDB Local requires Java
40+ distribution: " corretto"
41+ java-version: "11" # DynamoDB Local requires Java
4242
4343 - name: Download DynamoDB Local
4444 run: |
4545 wget https://dynamodb-local.s3.amazonaws.com/dynamodb_local_latest.tar.gz
4646 tar -xf dynamodb_local_latest.tar.gz
4747
4848 - name: Start DynamoDB Local
49- run : java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb &
49+ run: java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -inMemory - sharedDb &
5050 # The & runs the Java process in the background.
5151
5252 - name: Wait for DynamoDB Local
@@ -127,26 +127,42 @@ jobs:
127127 cp runtimes/java/*.json runtimes/rust/
128128
129129 - name: Test ${{ matrix.library }} Rust
130+ env :
131+ AWS_ACCESS_KEY_ID: 'DUMMY_KEY_ID'
132+ AWS_SECRET_ACCESS_KEY: 'DUMMY_SECRET_KEY'
133+ AWS_ENDPOINT_URL_DYNAMODB: 'http://localhost:8000' # This is key for the Rust SDK
130134 shell: bash
131135 working-directory: ./${{ matrix.library }}
132136 run: |
133137 make test_rust
134138
135139 - name: Test ${{ matrix.library }} Rust Fips
140+ env :
141+ AWS_ACCESS_KEY_ID: 'DUMMY_KEY_ID'
142+ AWS_SECRET_ACCESS_KEY: 'DUMMY_SECRET_KEY'
143+ AWS_ENDPOINT_URL_DYNAMODB: 'http://localhost:8000' # This is key for the Rust SDK
136144 shell: bash
137145 working-directory: ./${{ matrix.library }}/runtimes/rust/
138146 run: |
139147 cargo test --release --features fips -- --nocapture
140148
141149 - name: Test ${{ matrix.library }} Rust Debug
142150 if: ${{ matrix.library != 'TestVectors' }}
151+ env :
152+ AWS_ACCESS_KEY_ID: 'DUMMY_KEY_ID'
153+ AWS_SECRET_ACCESS_KEY: 'DUMMY_SECRET_KEY'
154+ AWS_ENDPOINT_URL_DYNAMODB: 'http://localhost:8000' # This is key for the Rust SDK
143155 shell: bash
144156 working-directory: ./${{ matrix.library }}
145157 run: |
146158 make test_rust test_rust_debug
147159
148160 - name: Test Examples for Rust in ${{ matrix.library }}
149161 if: ${{ matrix.library == 'DynamoDbEncryption' }}
162+ env :
163+ AWS_ACCESS_KEY_ID: 'DUMMY_KEY_ID'
164+ AWS_SECRET_ACCESS_KEY: 'DUMMY_SECRET_KEY'
165+ AWS_ENDPOINT_URL_DYNAMODB: 'http://localhost:8000' # This is key for the Rust SDK
150166 working-directory: ./${{ matrix.library }}/runtimes/rust/
151167 shell: bash
152168 run: |
0 commit comments