Skip to content

5 table manager

5 table manager #10

Workflow file for this run

name: Java CI with Maven
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '17'
- name: Set up Docker Compose
run: sudo apt-get install docker-compose
- name: Start Docker Compose services
run: docker-compose up -d
- name: Wait for services to be ready
run: |
echo "Waiting for services to be ready..."
while ! nc -z localhost 5432; do # Adapt this command depending on your DB or service port
sleep 2
done
- name: Build with Maven
run: mvn -B package --file pom.xml -DskipTests
- name: Run Tests
run: mvn test -Dspring.profiles.active=ci