This repository was archived by the owner on May 13, 2025. It is now read-only.
set-up-demo #11
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: Test Backend | |
| on: | |
| push: | |
| branches: | |
| - Tran-Dinh-Phong | |
| - fix-lặp-data | |
| - dev-frontend | |
| - Add-jwt | |
| - fix-e | |
| - testAPI | |
| - Testteamtask | |
| - karus | |
| - TestAPIf | |
| - www | |
| - main | |
| - test-docker | |
| - fix-time | |
| - tree-setup-loadpage | |
| - aaa | |
| - master | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| if: false | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Bước 1: Checkout code | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| # Bước 2: Thiết lập JDK 21 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: "temurin" | |
| java-version: "21" | |
| cache: maven | |
| # Bước 3: Cache thư mục Maven | |
| - name: Cache Maven dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.m2/repository | |
| key: maven-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: | | |
| maven- | |
| # Bước 4: Compile và chạy kiểm thử | |
| - name: Build and Test | |
| run: mvn -f teammatching/pom.xml clean verify -Dspring.profiles.active=ci |