This repository was archived by the owner on Feb 21, 2024. It is now read-only.
File tree 2 files changed +72
-0
lines changed
2 files changed +72
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : very_good_flutter_package
2
+
3
+ concurrency :
4
+ group : ${{ github.workflow }}-${{ github.ref }}
5
+ cancel-in-progress : true
6
+
7
+ on :
8
+ push :
9
+ paths :
10
+ - .github/workflows/very_good_flutter_package.yaml
11
+ - " brick/**"
12
+ branches :
13
+ - main
14
+ pull_request :
15
+ paths :
16
+ - .github/workflows/very_good_flutter_package.yaml
17
+ - " brick/**"
18
+ branches :
19
+ - main
20
+
21
+ jobs :
22
+ brick :
23
+ runs-on : ubuntu-latest
24
+
25
+ strategy :
26
+ matrix :
27
+ flutter-version :
28
+ # The version of Flutter to use should use the minimum Dart SDK version supported by the package,
29
+ # refer to https://docs.flutter.dev/development/tools/sdk/releases.
30
+ - " 3.13.0"
31
+ - " any"
32
+
33
+ steps :
34
+ - name : 📚 Git Checkout
35
+ uses : actions/checkout@v4
36
+
37
+ - name : 🐦 Setup Flutter
38
+ uses : subosito/flutter-action@v2
39
+ with :
40
+ flutter-version : ${{ matrix.flutter-version }}
41
+
42
+ - name : 🧱 Mason Make
43
+ run : |
44
+ dart pub global activate mason_cli
45
+ mason get
46
+ mason make very_good_flutter_package -c brick/config.json -o output --on-conflict overwrite
47
+
48
+ - name : 📦 Install Dependencies
49
+ run : |
50
+ dart pub global activate very_good_cli
51
+ very_good packages get --recursive output/test_package
52
+
53
+ - name : ✨ Check Formatting
54
+ run : dart format --set-exit-if-changed output/test_package
55
+
56
+ - name : 🕵️ Analyze
57
+ run : dart analyze --fatal-infos --fatal-warnings output/test_package
58
+
59
+ - name : 🧪 Run Tests
60
+ run : |
61
+ cd output/test_package
62
+ very_good test -j 4 --recursive --optimization --coverage --test-randomize-ordering-seed random
63
+
64
+ - name : 📊 Check Code Coverage
65
+ uses : VeryGoodOpenSource/very_good_coverage@v2
66
+ with :
67
+ path : output/test_package/coverage/lcov.info
Original file line number Diff line number Diff line change
1
+ {
2
+ "project_name" : " test_package" ,
3
+ "description" : " A generated Very Good Flutter package." ,
4
+ "publishable" : false
5
+ }
You can’t perform that action at this time.
0 commit comments