chore(ci): Remove flutter-version specification from CI configuration #3
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
| # Verifies `dart run tool/strip_sample_features.dart --apply` leaves an analyzable tree. | |
| name: Strip smoke | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: {} | |
| concurrency: | |
| group: strip-smoke-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| stripped-tree: | |
| name: Strip + analyze + test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| flutter-version: 'stable' | |
| channel: 'stable' | |
| cache: true | |
| - name: Install dependencies (full starter) | |
| run: flutter pub get | |
| - name: Apply strip | |
| run: dart run tool/strip_sample_features.dart --apply | |
| - name: Install dependencies (after strip) | |
| run: flutter pub get | |
| - name: Analyze stripped tree | |
| run: flutter analyze | |
| - name: Run tests (stripped tree) | |
| timeout-minutes: 15 | |
| run: flutter test --timeout=5m |