Skip to content

fix: update sql tests #13

fix: update sql tests

fix: update sql tests #13

Workflow file for this run

name: Execute tests on different DBs
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Set up OpenJDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'corretto'
- name: Check Docker Compose installation
run: |
if ! command -v docker-compose &> /dev/null
then
echo "Docker Compose is not installed. Installing now..."
sudo apt-get update
sudo apt-get install -y docker-compose
else
echo "Docker Compose is installed."
fi
- uses: actions/checkout@v3
- name: Set up Docker Containers
uses: adambirds/docker-compose-action@v1.3.0
with:
compose-file: |
./docker/mongodb/docker-compose.yml
./docker/mysql/docker-compose.yml
./docker/postgresql/docker-compose.yml
down-flags: "--volumes"
- name: Setup DynamoDB Local
uses: rrainn/dynamodb-action@v2.0.1
with:
dbPath: # undefined by default, if this is undefined inMemory will be used
sharedDb: # undefined by default
delayTransientStatuses: # undefined by default
optimizeDbBeforeStartup: # undefined by default
port: 8000
cors: '*'
- name: Run Maven tests
run: |
mvn install -DskipTests
mvn test -pl sql
mvn test -pl nosql
mvn test -pl manager
mvn test -pl base