-
-
Notifications
You must be signed in to change notification settings - Fork 64
43 lines (42 loc) · 1.29 KB
/
flutter-release-drive.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Test and publish package 🎁
on:
release:
types:
- created
jobs:
publish:
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
uses: sakebook/[email protected]
with:
credential: ${{ secrets.PUBSPEC_CREDENTIALS }}
flutter_package: true
skip_test: true
dry_run: false