Skip to content

Commit

Permalink
Adding nightly testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Bradley committed Jan 7, 2025
1 parent 477107e commit 14047a0
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,7 @@ jobs:
- name: Install dependencies
run: npm install

- name: Start DynamoDB Local
run: docker run -d -p 8000:8000 amazon/dynamodb-local

- name: Wait for DynamoDB to become ready
run: |
until aws dynamodb list-tables --endpoint-url http://127.0.0.1:8000; do
echo "Waiting for local DynamoDB..."
sleep 1
done
- name: Create Rooms table for testing
run: node test/integration-tests/scripts/create-local-table.js

- name: Set up env vars
- name: Set up env vars
run: |
echo "AWS_ACCESS_KEY_ID=FAKE_KEY" >> $GITHUB_ENV
echo "AWS_SECRET_ACCESS_KEY=FAKE_SECRET" >> $GITHUB_ENV
Expand All @@ -58,6 +45,18 @@ jobs:
echo "HOTEL_NAME=AWS App Runner Hotel" >> $GITHUB_ENV
echo "CI=true" >> $GITHUB_ENV
- name: Start DynamoDB Local
run: docker run -d -p 8000:8000 amazon/dynamodb-local

- name: Wait for DynamoDB to become ready
run: |
until aws dynamodb list-tables --endpoint-url http://127.0.0.1:8000; do
echo "Waiting for local DynamoDB..."
sleep 1
done
- name: Create Rooms table for testing
run: node test/integration-tests/scripts/create-local-table.js

- name: Start server
run: |
Expand Down

0 comments on commit 14047a0

Please sign in to comment.