Skip to content

Commit

Permalink
merge ScyllaDb and DynamoDb tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ma2bd committed Oct 10, 2023
1 parent 864d44f commit f8b8c30
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 60 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/dynamodb.yml → .github/workflows/databases.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: DynamoDB tests
name: Production databases

on:
push:
Expand Down Expand Up @@ -47,15 +47,29 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: |
cargo build --locked --features aws
cargo build --locked --features aws,scylladb
- name: Setup local ScyllaDB instance
run: |
docker run --name scylladb -d -p 9042:9042 scylladb/scylla
- name: Run ScyllaDB tests
run: |
cargo test --locked --features aws,scylladb -- scylla
- name: Stop local ScyllaDB instance
run: |
docker stop scylladb
docker rm scylladb
- name: Setup local DynamoDB instance
run: |
docker run --rm -d --name local-dynamodb -p 8000:8000/tcp amazon/dynamodb-local
docker run --rm -d --name dynamodb_local -p 8000:8000/tcp amazon/dynamodb-local
- name: Run DynamoDB tests
env:
AWS_REGION: us-east-1
AWS_ACCESS_KEY_ID: test
AWS_SECRET_ACCESS_KEY: test
LOCALSTACK_ENDPOINT: http://localhost:8000
run: |
cargo test --locked --features aws -- dynamo
cargo test --locked --features aws,scylladb -- dynamo
- name: Stop local DynamoDB instance
run: |
docker stop dynamodb_local
docker rm dynamodb_local
56 changes: 0 additions & 56 deletions .github/workflows/scylladb.yml

This file was deleted.

0 comments on commit f8b8c30

Please sign in to comment.