Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

edit format workflow, upgrade sdk version in pubspec #844

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 18 additions & 8 deletions .github/workflows/format_analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,30 @@ on:
branches:
- development


jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Repository
uses: actions/checkout@v4
- uses: subosito/flutter-action@v2

- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: '3.19.0'

- run: cd app && dart pub get

- run: dart format app/lib

- run: dart analyze app/lib

- name: Verify Flutter Setup
run: flutter doctor

- name: Get dependencies
run: flutter pub get
working-directory: app

- name: Format Dart files
run: dart format lib
working-directory: app

- name: Analyze Dart code
run: dart analyze lib
working-directory: app
2 changes: 1 addition & 1 deletion app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ publish_to: "none"
version: 4.0.0+184

environment:
sdk: ">=3.0.0"
sdk: ">=3.4.0"

dependencies:
flutter:
Expand Down
Loading