Skip to content

Commit 2d3208a

Browse files
authored
feat: very_good_core initial template (#8)
1 parent d76f6f7 commit 2d3208a

File tree

3 files changed

+44
-2
lines changed

3 files changed

+44
-2
lines changed

.github/workflows/main.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ jobs:
1717
run: dart format --set-exit-if-changed .
1818

1919
- name: Analyze
20-
run: dart analyze --fatal-infos --fatal-warnings .
20+
run: |
21+
dart analyze --fatal-infos --fatal-warnings lib
22+
dart analyze --fatal-infos --fatal-warnings test
2123
2224
- name: Verify Build
2325
run: pub run test --run-skipped -t pull-request-only
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: very_good_core
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "templates/very_good_core/lib/**"
7+
- "templates/very_good_core/test/**"
8+
- ".github/workflows/very_good_core.yaml"
9+
10+
jobs:
11+
build:
12+
defaults:
13+
run:
14+
working-directory: templates/very_good_core
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- uses: subosito/flutter-action@v1.4.0
20+
with:
21+
flutter-version: 1.22.6
22+
channel: "stable"
23+
24+
- name: Install Dependencies
25+
run: flutter packages get
26+
27+
- name: Format
28+
run: flutter format --set-exit-if-changed lib test
29+
30+
- name: Analyze
31+
run: flutter analyze lib test
32+
33+
- name: Run tests
34+
run: flutter test --no-pub --coverage --test-randomize-ordering-seed random
35+
36+
- name: Check Code Coverage
37+
uses: VeryGoodOpenSource/very_good_coverage@v1.1.1
38+
with:
39+
path: templates/very_good_core/coverage/lcov.info
40+
min_coverage: 95

analysis_options.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
include: package:very_good_analysis/analysis_options.yaml
22
analyzer:
33
exclude:
4-
- lib/src/version.dart
4+
- "**/version.dart"

0 commit comments

Comments
 (0)