PR-005 — Frontend Composition Root & Dependency Wiring #22
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: Frontend CI | |
| on: | |
| push: | |
| paths: | |
| - 'frontend/**' | |
| pull_request: | |
| paths: | |
| - 'frontend/**' | |
| jobs: | |
| build-and-test: | |
| name: Build, analyze and test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Cache Pub packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.pub-cache | |
| key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pub- | |
| - name: Setup Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| channel: stable | |
| - name: Get dependencies | |
| working-directory: frontend | |
| run: flutter pub get | |
| - name: Format check | |
| working-directory: frontend | |
| run: dart format --set-exit-if-changed . | |
| - name: Static analysis | |
| working-directory: frontend | |
| run: flutter analyze | |
| - name: Run tests | |
| working-directory: frontend | |
| run: flutter test --no-pub |