Develop #25
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: FlutterGuard | |
| on: | |
| push: | |
| branches: [main, develop] | |
| pull_request: | |
| branches: [main, develop] | |
| jobs: | |
| validate: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dart-lang/setup-dart@v1 | |
| with: | |
| sdk: "3.11.5" | |
| - name: Install dependencies | |
| run: dart pub get | |
| - name: Analyze | |
| run: dart analyze | |
| - name: Test | |
| run: dart test | |
| - name: Scan demo with current checkout | |
| run: dart run bin/flutterguard.dart scan example --format json --output .flutterguard/ci --fail-on high --no-color | |
| - name: Upload report | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: flutterguard-report-${{ matrix.os }} | |
| path: example/.flutterguard/ci/report.json | |
| if-no-files-found: error |