mirror of
https://github.com/wger-project/flutter.git
synced 2026-11-28 17:08:29 +01:00
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
name: Analyze
|
|
on:
|
|
# Direct pushes are only validated on master (post-merge); everything else
|
|
# is covered by the pull_request trigger, avoiding duplicate runs for
|
|
# same-repo PR branches.
|
|
push:
|
|
branches: [ master, ]
|
|
paths:
|
|
- '**.dart'
|
|
- 'pubspec.yaml'
|
|
- 'analysis_options.yaml'
|
|
- 'lib/l10n/**'
|
|
- 'ios/Runner/Info.plist'
|
|
- 'android/app/src/main/res/xml/locales_config.xml'
|
|
pull_request:
|
|
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
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- 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
|