2023-07-14 09:04:05 +00:00
|
|
|
name: Flutter Analyze
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
env:
|
|
|
|
FLUTTER_VERSION: '3.10.6'
|
2023-07-14 09:10:20 +00:00
|
|
|
JAVA_VERSION: '11.0'
|
2023-07-14 09:04:05 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
analyze:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2023-07-14 09:10:20 +00:00
|
|
|
- uses: actions/setup-java@v1
|
2023-07-14 09:04:05 +00:00
|
|
|
with:
|
2023-07-14 09:10:20 +00:00
|
|
|
java-version: ${{ env.JAVA_VERSION }}
|
|
|
|
- uses: subosito/flutter-action@v2
|
2023-07-14 09:04:05 +00:00
|
|
|
with:
|
|
|
|
flutter-version: ${{ env.FLUTTER_VERSION }}
|
|
|
|
- run: flutter pub get
|
|
|
|
- name: Check formatting
|
|
|
|
run: dart format lib/ test/ --set-exit-if-changed
|
|
|
|
- name: Check import formatting
|
|
|
|
run: dart run import_sorter:main --no-comments --exit-if-changed
|
|
|
|
- run: flutter analyze
|
|
|
|
- name: Apply google services patch
|
|
|
|
run: git apply ./scripts/enable-android-google-services.patch
|
|
|
|
- run: flutter analyze
|
2023-07-14 09:10:20 +00:00
|
|
|
- run: flutter test
|