Repository navigation
stage 8: polish + CI hotfix (#18) #5
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: | |
| backend: | |
| name: Backend — build and tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: "21" | |
| - uses: gradle/actions/setup-gradle@v4 | |
| # The Windows dev repo does not persist the executable bit; restore it. | |
| - name: Make gradlew executable | |
| working-directory: backend | |
| run: chmod +x gradlew | |
| - name: Build and test | |
| working-directory: backend | |
| run: ./gradlew build | |
| frontend: | |
| name: Frontend — typecheck, lint, test, build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| cache: npm | |
| cache-dependency-path: frontend/package-lock.json | |
| - name: Install dependencies | |
| working-directory: frontend | |
| run: npm ci | |
| - name: Typecheck | |
| working-directory: frontend | |
| run: npm run typecheck | |
| - name: Lint | |
| working-directory: frontend | |
| run: npm run lint | |
| - name: Test | |
| working-directory: frontend | |
| run: npm run test | |
| - name: Build | |
| working-directory: frontend | |
| run: npm run build |