fix(ci): remove update-repo job that lacks admin permissions #4
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: Test | |
| on: | |
| pull_request: | |
| branches: [main, develop] | |
| push: | |
| branches: [main, develop] | |
| jobs: | |
| flutter-test: | |
| name: Flutter Tests | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: apps/mobile | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| flutter-version: "3.22.x" | |
| channel: stable | |
| cache: true | |
| - name: Install dependencies | |
| run: flutter pub get | |
| - name: Run code generation | |
| run: dart run build_runner build --delete-conflicting-outputs | |
| - name: Analyze | |
| run: flutter analyze | |
| - name: Run unit & widget tests | |
| run: flutter test --coverage | |
| - name: Upload coverage | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| files: apps/mobile/coverage/lcov.info | |
| flags: flutter | |
| bridge-test: | |
| name: Bridge Server Tests | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: packages/bridge | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22" | |
| cache: npm | |
| cache-dependency-path: packages/bridge/package.json | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Type check | |
| run: npm run typecheck | |
| - name: Run tests | |
| run: npm test | |
| flutter-build-android: | |
| name: Android Build Check | |
| runs-on: ubuntu-latest | |
| needs: flutter-test | |
| if: github.event_name == 'push' | |
| defaults: | |
| run: | |
| working-directory: apps/mobile | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: "17" | |
| distribution: temurin | |
| - name: Set up Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| flutter-version: "3.22.x" | |
| channel: stable | |
| cache: true | |
| - name: Install dependencies | |
| run: flutter pub get | |
| - name: Run code generation | |
| run: dart run build_runner build --delete-conflicting-outputs | |
| - name: Build APK (debug) | |
| run: flutter build apk --debug | |
| flutter-build-ios: | |
| name: iOS Build Check | |
| runs-on: macos-latest | |
| needs: flutter-test | |
| if: github.event_name == 'push' | |
| defaults: | |
| run: | |
| working-directory: apps/mobile | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| flutter-version: "3.22.x" | |
| channel: stable | |
| cache: true | |
| - name: Install dependencies | |
| run: flutter pub get | |
| - name: Run code generation | |
| run: dart run build_runner build --delete-conflicting-outputs | |
| - name: Build iOS (no codesign) | |
| run: flutter build ios --debug --no-codesign |