diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d8152d0..89c3797 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,9 +1,6 @@ name: Continuous Integration on: - push: - branches-ignore: - - main pull_request: branches: - main @@ -22,5 +19,11 @@ jobs: distribution: temurin java-version: "17" - - name: Build with Maven - run: mvn clean package + - name: Build and start containers + run: docker compose up -d + + - name: Run Maven build inside container + run: docker compose exec app mvn clean package -f /source/pom.xml -X + + - name: Stop containers + run: docker compose down