Merge pull request #1311 from wger-project/feature/weblate #364
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Analyze | |
| on: | |
| push: | |
| paths: | |
| - '**.dart' | |
| - 'pubspec.yaml' | |
| - 'analysis_options.yaml' | |
| - 'lib/l10n/**' | |
| - 'ios/Runner/Info.plist' | |
| - 'android/app/src/main/res/xml/locales_config.xml' | |
| pull_request: | |
| branches: [ master, ] | |
| paths: | |
| - '**/*.dart' | |
| - 'pubspec.yaml' | |
| - 'analysis_options.yaml' | |
| - 'lib/l10n/**' | |
| - 'ios/Runner/Info.plist' | |
| - 'android/app/src/main/res/xml/locales_config.xml' | |
| - '.github/actions/flutter-common/action.yml' | |
| - '.github/workflows/analyze.yml' | |
| workflow_call: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| analyze: | |
| name: Run analyzer | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Common flutter setup | |
| uses: ./.github/actions/flutter-common | |
| - name: Analyze | |
| run: flutter analyze | |
| - name: Check locale lists are in sync | |
| run: dart run tool/check_locales.dart |