diff --git a/.github/workflows/code_analysis.yml b/.github/workflows/code_analysis.yml new file mode 100644 index 00000000..e6660ae0 --- /dev/null +++ b/.github/workflows/code_analysis.yml @@ -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 . \ No newline at end of file diff --git a/example/l10n.yaml b/example/l10n.yaml index b99f4e27..0a6804e5 100644 --- a/example/l10n.yaml +++ b/example/l10n.yaml @@ -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