Skip to content

Commit

Permalink
Use 'dart format' instead of 'flutter format'. (#1267)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvanbeusekom authored Jun 5, 2023
1 parent 0de0b93 commit 5437794
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 58 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/geolocator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:

# Run Flutter Format to ensure formatting is valid
- name: Run Flutter Format
run: flutter format --set-exit-if-changed .
run: dart format --set-exit-if-changed .
working-directory: ${{env.source-directory}}

# Run Flutter Analyzer
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/geolocator_android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:

# Run Flutter Format to ensure formatting is valid
- name: Run Flutter Format
run: flutter format --set-exit-if-changed .
run: dart format --set-exit-if-changed .
working-directory: ${{env.source-directory}}

# Run Flutter Analyzer
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/geolocator_apple.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:

# Run Flutter Format to ensure formatting is valid
- name: Run Flutter Format
run: flutter format --set-exit-if-changed .
run: dart format --set-exit-if-changed .
working-directory: ${{env.source-directory}}

# Run Flutter Analyzer
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/geolocator_linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:

# Run Flutter Format to ensure formatting is valid
- name: Run Flutter Format
run: flutter format --set-exit-if-changed .
run: dart format --set-exit-if-changed .
working-directory: ${{env.source-directory}}

# Run Flutter Analyzer
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/geolocator_platform_interface.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
ci:
name: Format
name: Geolocator Platform Interface

# The type of runner that the job will run on
runs-on: ubuntu-latest
Expand All @@ -42,7 +42,7 @@ jobs:

# Run Flutter Format to ensure formatting is valid
- name: Run Flutter Format
run: flutter format --set-exit-if-changed .
run: dart format --set-exit-if-changed .
working-directory: ${{env.source-directory}}

# Run Flutter Analyzer
Expand Down
53 changes: 2 additions & 51 deletions .github/workflows/geolocator_web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
format:
name: Format
name: Web Platform Package

# The type of runner that the job will run on
runs-on: ubuntu-latest
Expand All @@ -41,63 +41,14 @@ jobs:

# Run Flutter Format to ensure formatting is valid
- name: Run Flutter Format
run: flutter format --set-exit-if-changed .
working-directory: ${{env.source-directory}}

analyze:
name: Analyze

# The type of runner that the job will run on
runs-on: ubuntu-latest

env:
source-directory: ./geolocator_web

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

# Make sure the stable version of Flutter is available
- uses: subosito/flutter-action@v2
with:
channel: 'stable'

# Download all Flutter packages
- name: Download dependencies
run: flutter pub get
run: dart format --set-exit-if-changed .
working-directory: ${{env.source-directory}}

# Run Flutter Analyzer
- name: Run Flutter Analyzer
run: flutter analyze
working-directory: ${{env.source-directory}}

build_web:
name: Build Web App

# The type of runner that the job will run on
runs-on: ubuntu-latest

env:
source-directory: ./geolocator_web
example-directory: ./geolocator_web/example

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

# Make sure the stable version of Flutter is available
- uses: subosito/flutter-action@v2
with:
channel: 'stable'

# Download all Flutter packages
- name: Download dependencies
run: flutter pub get
working-directory: ${{env.source-directory}}

# Build Web version of the example App
- name: Run Web build
run: flutter build web --release --no-sound-null-safety
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/geolocator_windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:

# Run Flutter Format to ensure formatting is valid
- name: Run Flutter Format
run: flutter format --set-exit-if-changed .
run: dart format --set-exit-if-changed .
working-directory: ${{env.source-directory}}

# Run Flutter Analyzer
Expand Down

0 comments on commit 5437794

Please sign in to comment.