feat: add CI workflows for backend and frontend; configure build and … #1
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: Backend CI | |
| on: | |
| push: | |
| branches: [main, develop] | |
| paths: | |
| - "backend/**" | |
| - ".github/workflows/backend-ci.yml" | |
| pull_request: | |
| branches: [main, develop] | |
| paths: | |
| - "backend/**" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: "21" | |
| distribution: "temurin" | |
| - name: Build with Gradle | |
| working-directory: backend | |
| run: ./gradlew build | |
| - name: Run tests | |
| working-directory: backend | |
| run: ./gradlew test | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@v3 | |
| with: | |
| name: backend-test-results | |
| path: backend/build/reports/tests/ |