Release v0.7.8 — Sprint 106: imagem da plataforma em registry público (GHCR) #73
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Docker Compose Validate | |
| on: | |
| pull_request: | |
| branches: [main, staging, develop] | |
| paths: &watched-paths | |
| - "docker-compose.yml" | |
| - "docker/**" | |
| - ".env.example" | |
| - "build.gradle.kts" | |
| - "settings.gradle.kts" | |
| - "gradle/**" | |
| - "gradlew" | |
| - "src/**" | |
| - ".github/workflows/*.yml" | |
| push: | |
| branches: [main, staging, develop] | |
| paths: *watched-paths | |
| jobs: | |
| test: | |
| # Fixed version, not ubuntu-latest — that tag moves to a newer image over time | |
| # without notice, risking non-reproducible CI runs | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Java 21 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| cache: 'gradle' | |
| - name: Run tests | |
| run: ./gradlew test | |
| - name: Publish test report | |
| if: always() | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: test-report | |
| path: build/reports/tests/test/ | |
| validate: | |
| # Fixed version, not ubuntu-latest — that tag moves to a newer image over time | |
| # without notice, risking non-reproducible CI runs | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 20 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Create .env from .env.example | |
| run: cp .env.example .env | |
| - name: Build and start services | |
| run: docker compose up -d --build --wait --wait-timeout 120 | |
| - name: Check application is reachable | |
| run: curl --fail -L http://localhost:8080/ | |
| - name: Dump logs on failure | |
| if: failure() | |
| run: docker compose logs | |
| - name: Tear down | |
| if: always() | |
| run: docker compose down -v |