feat: Enable Spring Boot Virtual Threads #9
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: CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build-and-test: | |
| name: Build and Test | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Java 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: '21' | |
| cache: maven | |
| - name: Build project | |
| run: mvn clean compile -B | |
| - name: Run unit tests | |
| run: mvn test -B -Dtest="JwtServiceTest,RefreshTokenServiceTest,AuthServiceTest,ApplicationServiceTest" -DfailIfNoTests=false | |
| - name: Run integration tests | |
| run: mvn test -B -Dtest="AuthControllerIT,ApplicationControllerIT,ApplicationRepositoryIT,JobTrackerApplicationTests" -DfailIfNoTests=false | |
| - name: Run E2E tests | |
| run: mvn test -B -Dtest="AuthE2ETest,ApplicationE2ETest" -DfailIfNoTests=false | |
| - name: Full verify | |
| run: mvn verify -B |