Fix not handling image URL being null #222
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: starcat | |
on: [pull_request, push] | |
jobs: | |
semantic-pull-request: | |
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/semantic_pull_request.yml@v1 | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 📚 Git Checkout | |
uses: actions/checkout@v3 | |
- name: 🐦 Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: 3.13.0 | |
cache: true | |
cache-key: flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }} | |
- name: 📦 Install Dependencies | |
run: | | |
flutter pub global activate very_good_cli | |
very_good packages get --recursive | |
- name: ✨ Check Formatting | |
run: dart format --set-exit-if-changed lib test | |
- name: 🕵️ Analyze | |
run: flutter analyze lib test | |
- name: 🧪 Run Tests | |
run: very_good test --optimization --coverage --test-randomize-ordering-seed random | |
- name: 📊 Check Code Coverage | |
uses: VeryGoodOpenSource/very_good_coverage@v2 | |
with: | |
path: ./coverage/lcov.info | |
exclude: "**/*.g.dart" | |
min_coverage: 80 | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./coverage/lcov.info |