Skip to content

Commit

Permalink
Check formatting, analyze code and run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
prasadsunny1 committed Feb 1, 2024
1 parent d7af9b7 commit ebabe19
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,19 @@ jobs:
# Fetches proj dependencies from pub
- name: Install dependencies
run: flutter pub get
# ^ If you want to use a specific version of flutter
# ^ If you want to use a specific version of flutter

# Verifies if the dart code is formatted well
- name: Verify formatting
run: dart format --output=none --set-exit-if-changed .
# --set-exit-if-changed stops execution if the any code is not well formatted
# --output=none prints files which needs to be formatted

# Checks for Symantic errors. Can be configured using analysis_options.yaml
- name: Analyze project source
run: flutter analyze
# optionally use --fatal-warnings to stop execution if any warnings are found

# Runs unit test
- name: Run tests
run: flutter test

0 comments on commit ebabe19

Please sign in to comment.