fix logic bug #15
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: Flutter CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: stable | |
| - name: Cache pub packages (Flutter) | |
| uses: actions/cache@v3 | |
| with: | |
| path: | | |
| ~/.pub-cache | |
| key: ${{ runner.os }}-pub-${{ hashFiles('e_shoppe/**/pubspec.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pub- | |
| - name: Flutter pub get | |
| working-directory: e_shoppe | |
| run: flutter pub get | |
| - name: Analyze Flutter code | |
| working-directory: e_shoppe | |
| run: flutter analyze --no-pub | |
| - name: Run Flutter tests | |
| working-directory: e_shoppe | |
| run: flutter test | |
| backend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Dart | |
| uses: dart-lang/setup-dart@v1 | |
| - name: Cache pub packages (Dart) | |
| uses: actions/cache@v3 | |
| with: | |
| path: | | |
| ~/.pub-cache | |
| key: ${{ runner.os }}-dart-${{ hashFiles('order_server/pubspec.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-dart- | |
| - name: Dart pub get (backend) | |
| working-directory: order_server | |
| run: dart pub get | |
| - name: Analyze backend code | |
| working-directory: order_server | |
| run: dart analyze --fatal-infos --fatal-warnings | |
| # If backend tests exist, run them (none yet, so this is optional) | |
| # - name: Run backend tests | |
| # working-directory: order_server | |
| # run: dart test |