-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,6 @@ name: hydrated_bloc | |
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- "packages/hydrated_bloc/**" | ||
- ".github/workflows/hydrated_bloc.yaml" | ||
|
@@ -19,20 +17,19 @@ jobs: | |
run: | ||
working-directory: packages/hydrated_bloc | ||
runs-on: ubuntu-latest | ||
container: | ||
image: google/dart:2.12-dev | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: subosito/[email protected] | ||
with: | ||
channel: beta | ||
- name: Install Dependencies | ||
run: pub get | ||
run: flutter pub get | ||
- name: Format | ||
run: dartfmt --dry-run --set-exit-if-changed . | ||
run: flutter format --set-exit-if-changed lib test example | ||
- name: Analyze | ||
run: | | ||
dart analyze --fatal-infos --fatal-warnings lib | ||
dart analyze --fatal-infos --fatal-warnings test | ||
run: flutter analyze lib test example | ||
- name: Run tests | ||
run: dart test -j 1 --coverage=coverage && pub run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --packages=.packages --report-on=lib | ||
run: flutter test -j 1 --no-pub --coverage --test-randomize-ordering-seed random | ||
- name: Check Code Coverage | ||
uses: VeryGoodOpenSource/[email protected] | ||
with: | ||
|