Feat/add refresh when network available #32
Workflow file for this run
This file contains 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/[email protected] | |
with: | |
path: .github/workflows/.env | |
- name: 💙 Install Flutter | |
uses: subosito/[email protected] | |
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/[email protected] | |
with: | |
path: .github/workflows/.env | |
- name: 💙 Install Flutter | |
uses: subosito/[email protected] | |
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 --coverage --no-pub --test-randomize-ordering-seed random | |
- name: 💯 Check coverage | |
uses: VeryGoodOpenSource/very_good_coverage@v3 |