Feature/prepare for riverpod 3 #58
Workflow file for this run
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: Pull request checks | |
| on: | |
| pull_request: | |
| branches: [main] | |
| workflow_call: | |
| jobs: | |
| analyze: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - name: 📚 Git Checkout | |
| uses: actions/checkout@v4 | |
| - id: dotenv | |
| uses: falti/dotenv-action@v1.0.4 | |
| with: | |
| path: .github/workflows/.env | |
| - name: 💙 Install Flutter | |
| uses: subosito/flutter-action@v2.9.1 | |
| with: | |
| flutter-version: ${{ steps.dotenv.outputs.flutter_version }} | |
| channel: "stable" | |
| cache: true | |
| cache-key: ${{ runner.os }}-flutter-${{ steps.dotenv.outputs.flutter_version }} | |
| cache-path: ${{ runner.tool_cache }}/flutter-${{ steps.dotenv.outputs.flutter_version }} | |
| - name: 🟠 Install Dependencies | |
| uses: bluefireteam/melos-action@v1 | |
| - name: 🧐 Analyze | |
| run: melos analyze | |
| test-extensions: | |
| needs: analyze | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: 📚 Git Checkout | |
| uses: actions/checkout@v4 | |
| - id: dotenv | |
| uses: falti/dotenv-action@v1.0.4 | |
| with: | |
| path: .github/workflows/.env | |
| - name: 💙 Install Flutter | |
| uses: subosito/flutter-action@v2.9.1 | |
| with: | |
| flutter-version: ${{ steps.dotenv.outputs.flutter_version }} | |
| channel: "stable" | |
| cache: true | |
| cache-key: ${{ runner.os }}-flutter-${{ steps.dotenv.outputs.flutter_version }} | |
| cache-path: ${{ runner.tool_cache }}/flutter-${{ steps.dotenv.outputs.flutter_version }} | |
| - name: 🟠 Install Dependencies | |
| run: flutter pub get | |
| - name: ✅ Run tests | |
| run: flutter test --no-pub --test-randomize-ordering-seed random |