Skip to content

Commit

Permalink
run pin package directories
Browse files Browse the repository at this point in the history
  • Loading branch information
denrase committed Aug 14, 2023
1 parent 9b8d4f4 commit 777880f
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/format-and-fix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,29 @@ jobs:
if: ${{ !startsWith(github.ref, 'refs/heads/release/') }}
runs-on: ubuntu-latest
timeout-minutes: 20
matrix:
package: [
{name: dart, sdk: dart},
{name: dio, sdk: dart},
{name: file, sdk: dart},
{name: flutter, sdk: flutter},
{name: logging, sdk: dart},
{name: sqflite, sdk: flutter},
]
defaults:
run:
working-directory: ${{ matrix.package.name }}
steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@6a218f2413a3e78e9087f638a238f6b40893203d # pin@v1
if: ${{ matrix.package.sdk == 'dart' }}
- uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa # [email protected]
if: ${{ matrix.package.sdk == 'flutter' }}

- run: ${{ matrix.package.sdk }} pub get

- run: dart format .

- run: dart fix --apply

# Source: https://stackoverflow.com/a/58035262
Expand Down

0 comments on commit 777880f

Please sign in to comment.