Update SecurityConfigIntegrationTest.java & application-integration-t… #565
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 (Gradle + Testcontainers) | |
| on: | |
| push: | |
| branches: [ "main", "develop" ] | |
| pull_request: | |
| branches: [ "main", "develop" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout source code | |
| uses: actions/checkout@v4 | |
| - name: Set up Java 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 21 | |
| cache: gradle | |
| - name: Verify Docker availability | |
| run: | | |
| echo "Docker version:" | |
| docker version | |
| echo "Docker info:" | |
| docker info | |
| - name: Wait for Docker to be fully ready | |
| run: | | |
| echo "Waiting for Docker daemon to stabilize..." | |
| sleep 10s | |
| docker info | |
| docker ps -a # optional: shows any pre-existing containers | |
| - name: Grant execute permission for Gradle wrapper | |
| run: chmod +x backend/gradlew | |
| - name: Run full verification (unit + integration + quality gates) | |
| working-directory: backend | |
| run: | | |
| ./gradlew clean check --stacktrace --console=plain | |
| - name: Upload build reports | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: build-reports | |
| path: | | |
| backend/build/reports | |
| backend/build/test-results | |
| - name: Upload JaCoCo coverage report | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: jacoco-report | |
| path: backend/build/reports/jacoco/test/ | |
| - name: Upload coverage to Codecov | |
| if: success() && github.event_name == 'push' | |
| uses: codecov/codecov-action@v4 | |
| continue-on-error: true | |
| with: | |
| files: backend/build/reports/jacoco/test/jacocoTestReport.xml | |
| name: codecov-phoebe | |
| token: ${{ secrets.CODECOV_TOKEN }} |