Skip to content

Commit

Permalink
Add: code_analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
AmosHuKe committed Mar 2, 2024
1 parent 605fa2b commit 2af43c0
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/test_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,27 @@ on:
- "example/**"

jobs:

code_analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Prepare dependencies
run: |
flutter --version
flutter pub get
- name: Check Dart code formatting
run: |
dart format . -o none --set-exit-if-changed
- name: Analyze Dart code
run: |
flutter analyze .
test_minimum_version:
needs: [code_analysis]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -31,7 +51,9 @@ jobs:
flutter pub get
- name: Test
run: flutter test

test_latest_version:
needs: [code_analysis]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 2af43c0

Please sign in to comment.