Skip to content

Commit 14047a0

Browse files
author
Robert Bradley
committed
Adding nightly testing
1 parent 477107e commit 14047a0

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

.github/workflows/tests.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,7 @@ jobs:
3232
- name: Install dependencies
3333
run: npm install
3434

35-
- name: Start DynamoDB Local
36-
run: docker run -d -p 8000:8000 amazon/dynamodb-local
37-
38-
- name: Wait for DynamoDB to become ready
39-
run: |
40-
until aws dynamodb list-tables --endpoint-url http://127.0.0.1:8000; do
41-
echo "Waiting for local DynamoDB..."
42-
sleep 1
43-
done
44-
45-
- name: Create Rooms table for testing
46-
run: node test/integration-tests/scripts/create-local-table.js
47-
48-
- name: Set up env vars
35+
- name: Set up env vars
4936
run: |
5037
echo "AWS_ACCESS_KEY_ID=FAKE_KEY" >> $GITHUB_ENV
5138
echo "AWS_SECRET_ACCESS_KEY=FAKE_SECRET" >> $GITHUB_ENV
@@ -58,6 +45,18 @@ jobs:
5845
echo "HOTEL_NAME=AWS App Runner Hotel" >> $GITHUB_ENV
5946
echo "CI=true" >> $GITHUB_ENV
6047
48+
- name: Start DynamoDB Local
49+
run: docker run -d -p 8000:8000 amazon/dynamodb-local
50+
51+
- name: Wait for DynamoDB to become ready
52+
run: |
53+
until aws dynamodb list-tables --endpoint-url http://127.0.0.1:8000; do
54+
echo "Waiting for local DynamoDB..."
55+
sleep 1
56+
done
57+
58+
- name: Create Rooms table for testing
59+
run: node test/integration-tests/scripts/create-local-table.js
6160

6261
- name: Start server
6362
run: |

0 commit comments

Comments
 (0)