ci.yml
1,016 bytes
| 1 | name: CI |
|---|---|
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: [main] |
| 6 | pull_request: |
| 7 | |
| 8 | permissions: |
| 9 | contents: read |
| 10 | |
| 11 | jobs: |
| 12 | backend: |
| 13 | runs-on: ubuntu-latest |
| 14 | steps: |
| 15 | - uses: actions/checkout@v4 |
| 16 | - uses: actions/setup-java@v4 |
| 17 | with: |
| 18 | distribution: temurin |
| 19 | java-version: "21" |
| 20 | cache: maven |
| 21 | - name: Test backend |
| 22 | working-directory: backend |
| 23 | run: ./mvnw verify |
| 24 | |
| 25 | frontend: |
| 26 | runs-on: ubuntu-latest |
| 27 | steps: |
| 28 | - uses: actions/checkout@v4 |
| 29 | - uses: actions/setup-node@v4 |
| 30 | with: |
| 31 | node-version: "24" |
| 32 | cache: npm |
| 33 | cache-dependency-path: frontend/package-lock.json |
| 34 | - name: Install frontend dependencies |
| 35 | working-directory: frontend |
| 36 | run: npm ci |
| 37 | - name: Lint frontend |
| 38 | working-directory: frontend |
| 39 | run: npm run lint |
| 40 | - name: Test frontend |
| 41 | working-directory: frontend |
| 42 | run: npm test |
| 43 | - name: Build frontend |
| 44 | working-directory: frontend |
| 45 | run: npm run build |
| 46 | |