Skip to content

Commit

Permalink
CI: Action - Code Analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
AmosHuKe committed Mar 2, 2024
1 parent 44ad870 commit e0d0307
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/code_analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: "Code Analysis (stable)"

on:
push:
branches:
- main
paths-ignore:
- "**.md"
pull_request:
branches:
- main
paths-ignore:
- "**.md"

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 .
2 changes: 1 addition & 1 deletion example/l10n.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
arb-dir: lib/l10n
# format: true
format: true
output-class: AppLocalizations
output-dir: lib/l10n/gen
output-localization-file: app_localizations.dart
Expand Down

0 comments on commit e0d0307

Please sign in to comment.