Skip to content

Commit 26a22df

Browse files
authored
chore: v0.4.1 (#43)
1 parent fe9f5f4 commit 26a22df

3 files changed

Lines changed: 44 additions & 11 deletions

File tree

.github/workflows/main.yaml

Lines changed: 38 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,48 @@ on:
1111
jobs:
1212
formz:
1313
runs-on: ubuntu-latest
14-
container:
15-
image: google/dart:2.12-dev
14+
1615
steps:
1716
- uses: actions/checkout@v2
17+
- uses: dart-lang/setup-dart@v1
18+
1819
- name: Install Dependencies
19-
run: pub get
20+
run: dart pub get
21+
2022
- name: Format
21-
run: dartfmt --dry-run --set-exit-if-changed .
23+
run: dart format --set-exit-if-changed .
24+
2225
- name: Analyze
23-
run: dartanalyzer --fatal-infos --fatal-warnings lib test
24-
- name: Test
25-
run: dart test --coverage=coverage && pub run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --packages=.packages --report-on=lib
26+
run: dart analyze --fatal-infos --fatal-warnings .
27+
28+
- name: Run Tests
29+
run: |
30+
pub global activate test_coverage
31+
export PATH=$PATH:$HOME/.pub-cache/bin
32+
test_coverage
33+
2634
- name: Check Code Coverage
27-
uses: VeryGoodOpenSource/very_good_coverage@v1.1.1
28-
- name: Upload Coverage to Codecov
35+
uses: VeryGoodOpenSource/very_good_coverage@v1.2.0
36+
37+
- name: Upload coverage to Codecov
2938
uses: codecov/codecov-action@v1
39+
40+
pana:
41+
runs-on: ubuntu-latest
42+
43+
steps:
44+
- uses: actions/checkout@v2.3.4
45+
46+
- uses: subosito/flutter-action@v1.5.3
47+
48+
- name: Install Dependencies
49+
run: |
50+
flutter packages get
51+
flutter pub global activate pana
52+
53+
- name: Verify Pub Score
54+
run: |
55+
PANA=$(pana . --no-warning); PANA_SCORE=$(echo $PANA | sed -n "s/.*Points: \([0-9]*\)\/\([0-9]*\)./\1\/\2/p")
56+
echo "score: $PANA_SCORE"
57+
IFS='/'; read -a SCORE_ARR <<< "$PANA_SCORE"; SCORE=SCORE_ARR[0]; TOTAL=SCORE_ARR[1]
58+
if (( $SCORE < $TOTAL )); then echo "minimum score not met!"; exit 1; fi

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.4.1
2+
3+
- feat: add `submissionCanceled` to `FormzStatus`
4+
15
# 0.4.0
26

37
- **BREAKING**: opt into null safety

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ issue_tracker: https://github.com/ChicagoFlutter/formz/issues
55
homepage: https://github.com/ChicagoFlutter/formz
66
documentation: https://github.com/ChicagoFlutter/formz
77

8-
version: 0.4.0
8+
version: 0.4.1
99

1010
environment:
11-
sdk: ">=2.12.0-0 <3.0.0"
11+
sdk: ">=2.12.0 <3.0.0"
1212

1313
dev_dependencies:
1414
coverage: ^0.14.2

0 commit comments

Comments
 (0)