name: analyze on: pull_request: branches: [main] types: [opened, synchronize, reopened] push: branches: [main] permissions: contents: read pull-requests: write jobs: lint: runs-on: blacksmith-4vcpu-ubuntu-2404 steps: - name: Checkout Repository uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Flutter uses: subosito/flutter-action@v2 with: channel: "stable" flutter-version: 3.47.2 cache: true - name: Codegen (app) run: | touch .env flutter pub get --enforce-lockfile dart run build_runner build --delete-conflicting-outputs - name: Codegen (widgetbook) run: | cd widgetbook dart run build_runner build --delete-conflicting-outputs - name: Run Flutter Analyze id: analyze_step run: flutter analyze --write=flutter_analyze.log . - name: Flutter Analyze Commenter if: ${{ !cancelled() && steps.analyze_step.outcome != 'skipped' && github.event_name == 'pull_request' }} uses: yorifuji/flutter-analyze-commenter@v1 with: analyze-log: flutter_analyze.log verbose: false