-
Notifications
You must be signed in to change notification settings - Fork 11
Workflow improvements and Docker Compose integration #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Introduces Docker Compose setup, startup, and teardown steps to the maven-publish GitHub Actions workflow. This allows test services defined in docker/test-services.yml to be started before publishing and stopped after, improving the workflow's environment setup.
Codecov Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
|
🤖 Augment PR SummarySummary: Updates the Maven publish workflow to reflect Spring Data Redis 3.x/JDK 17 publishing and to manage required test services via Docker Compose. 🤖 Was this summary useful? React with 👍 or 👎 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - name: Docker Setup Compose | ||
| uses: docker/setup-compose-action@v1.2.0 | ||
| with: | ||
| version: latest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| cache: maven | ||
|
|
||
| - name: Run Docker Compose | ||
| run: docker compose -f "docker/test-services.yml" up -d |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docker compose up -d returns once containers are started, not necessarily when services are ready; if Maven runs integration tests immediately after, this can introduce flaky failures. Consider ensuring the test services are healthy/ready before mvn deploy proceeds.
🤖 Was this useful? React with 👍 or 👎
|
|
||
| - name: Stop Docker Compose | ||
| if: always() | ||
| run: docker compose -f "docker/test-services.yml" down |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.



This pull request updates the
.github/workflows/maven-publish.ymlworkflow to improve the publishing process for Spring Data Redis 3.x projects and to integrate Docker Compose for managing test services during the build. The main changes focus on updating workflow descriptions and adding steps to set up, run, and clean up Docker Compose services.Workflow improvements and Docker Compose integration:
docker/setup-compose-action@v1.2.0GitHub Action.docker compose -f "docker/test-services.yml" up -d).docker compose -f "docker/test-services.yml" down).