Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
tshedor committed Aug 19, 2024
1 parent 28d52ec commit 90c6a22
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/reusable-dart-analyze-format-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
key: ${{ runner.os }}-${{ inputs.package }}-v1-${{ matrix.sdk_version }}-${{ hashFiles(format('packages/{0}/pubspec.yaml', inputs.package)) }}
restore-keys: |
${{ runner.os }}-${{ inputs.package }}-v1-${{ matrix.sdk_version }}
- id: checkout
uses: actions/checkout@v3
- uses: actions/checkout@v3

- run: dart pub get && dart run melos bootstrap --scope="${{ inputs.package }}"

Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/reusable-flutter-analyze-format-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,22 @@ jobs:
restore-keys: |
${{ runner.os }}-${{ inputs.package }}-v1-${{ matrix.flutter_version }}
- id: checkout
uses: actions/checkout@v3
- uses: actions/checkout@v3

- run: flutter pub get
working-directory: packages/${{ inputs.package }}

- run: dart analyze --fatal-infos lib test
- run: dart analyze --fatal-infos lib
working-directory: packages/${{ inputs.package }}

- run: dart format --output=none --line-length 100 --set-exit-if-changed lib test
- run: if [ -d "test" ]; then dart analyze --fatal-infos test; fi
working-directory: packages/${{ inputs.package }}

- run: flutter test
- run: dart format --output=none --line-length 100 --set-exit-if-changed lib
working-directory: packages/${{ inputs.package }}

- run: if [ -d "test" ]; then dart format --output=none --line-length 100 --set-exit-if-changed test; fi
working-directory: packages/${{ inputs.package }}

- run: if [ -d "test" ]; then flutter test; fi
working-directory: packages/${{ inputs.package }}

0 comments on commit 90c6a22

Please sign in to comment.