mirror of
https://github.com/wger-project/flutter.git
synced 2026-11-28 17:08:29 +01:00
46 lines
1.0 KiB
YAML
46 lines
1.0 KiB
YAML
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@v6
|
|
|
|
- name: Common flutter setup
|
|
uses: ./.github/actions/flutter-common
|
|
|
|
- name: Install dependencies
|
|
run: flutter pub get
|
|
|
|
- name: Analyze
|
|
run: flutter analyze --no-fatal-infos --no-fatal-warnings
|
|
|
|
- name: Check locale lists are in sync
|
|
run: dart run tool/check_locales.dart
|