feat: add enabled flag to SubtitleWrapper for conditional subtitle di… #91
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: Test and (dry-run) publish package 🎁 | |
on: [pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 📚 Git Checkout | |
uses: actions/checkout@v2 | |
- name: 🐦 Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: 3.7.2 | |
channel: "stable" | |
cache: true | |
- name: 📦 Install Dependencies | |
run: flutter pub get | |
- name: ✨ Check Formatting | |
run: flutter format --set-exit-if-changed lib test example | |
- name: 🕵️ Analyze | |
run: flutter analyze lib test example | |
- name: 🧪 Run Tests | |
run: flutter test --no-pub --coverage --test-randomize-ordering-seed random | |
- name: 📊 Check Code Coverage | |
uses: VeryGoodOpenSource/very_good_coverage@v1 | |
with: | |
# TODO (Joran-Dob), improve code coverage | |
min_coverage: 50 | |
path: coverage/lcov.info | |
- name: 🚀 Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
file: coverage/lcov.info | |
- name: 📦 Publish (dry-run) | |
run: flutter pub publish --dry-run |