Merge branch 'develop' into copilot/add-private-direct-messaging #154
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, develop, copilot/** ] | |
| pull_request: | |
| branches: [ main, develop ] | |
| jobs: | |
| backend: | |
| name: Backend Build and Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Build with Maven | |
| run: | | |
| cd backend | |
| mvn clean compile | |
| - name: Run tests | |
| run: | | |
| cd backend | |
| mvn test | |
| - name: Package application | |
| run: | | |
| cd backend | |
| mvn package -DskipTests | |
| frontend: | |
| name: Frontend Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: gradle | |
| - name: Grant execute permission for gradlew | |
| run: | | |
| cd frontend | |
| chmod +x gradlew | |
| - name: Build with Gradle | |
| run: | | |
| cd frontend | |
| ./gradlew build --no-daemon | |
| - name: Run tests | |
| run: | | |
| cd frontend | |
| ./gradlew test --no-daemon |