Refactor PaymentController to use @RequestParam for category and upda… #15
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: Java CI with Maven | ||
|
Check failure on line 1 in .github/workflows/maven.yml
|
||
| on: | ||
| push: | ||
| branches: ["main"] | ||
| pull_request: | ||
| branches: ["main"] | ||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| # 📥 Clona o repo | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| - name: Set up JDK 21 | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| distribution: temurin | ||
| java-version: 21 | ||
| cache: maven | ||
| # 🔍 Ver versão (debug útil) | ||
| - name: Check Java version | ||
| run: java -version | ||
| # ⚙️ Build + testes | ||
| - name: Prepare Maven Wrapper | ||
| run: | | ||
| chmod +x mvnw | ||
| sed -i 's/\r$//' mvnw | ||
| - name: Build with Maven Wrapper | ||
| run: ./mvnw -B clean verify | ||
| # 📊 (Opcional) analisar dependências | ||
| - name: Dependency analysis | ||
| run: ./mvnw -B dependency:analyze | ||
| continue-on-error: true | ||
| # 📦 (Opcional) gerar árvore de dependências | ||
| - name: Dependency tree | ||
| run: ./mvnw -B dependency:tree | ||
| docker: | ||
| runs-on: ubuntu-latest | ||
| needs: build | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| - name: Build Docker image (Render parity) | ||
| run: docker build --progress=plain -t finacesysthen:ci . | ||
| - name: Smoke test container | ||
| run: | | ||
| docker run -d --rm --name finacesysthen-ci -p 8080:8080 -e PORT=8080 finacesysthen:ci | ||
| for i in $(seq 1 40); do | ||
| if curl -fsS "http://localhost:8080/swagger-ui/index.html" >/dev/null; then | ||
| echo "Swagger UI is up" | ||
| exit 0 | ||
| fi | ||
| sleep 2 | ||
| done | ||
| echo "App did not become ready in time" | ||
| docker logs finacesysthen-ci || true | ||
| exit 1 | ||
| deploy-render: | ||
| runs-on: ubuntu-latest | ||
| needs: docker | ||
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' && secrets.RENDER_DEPLOY_HOOK_URL != '' | ||
| steps: | ||
| - name: Trigger Render deploy hook | ||
| env: | ||
| RENDER_DEPLOY_HOOK_URL: ${{ secrets.RENDER_DEPLOY_HOOK_URL }} | ||
| run: curl -fsSL "$RENDER_DEPLOY_HOOK_URL" >/dev/null | ||