Skip to content

Commit

Permalink
ci: use flutter image
Browse files Browse the repository at this point in the history
  • Loading branch information
felangel committed Jan 29, 2021
1 parent 321c42b commit 203cb84
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/hydrated_bloc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: hydrated_bloc

on:
push:
branches:
- master
paths:
- "packages/hydrated_bloc/**"
- ".github/workflows/hydrated_bloc.yaml"
Expand All @@ -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:
Expand Down

0 comments on commit 203cb84

Please sign in to comment.