CI: Add basic analyze workflow
This commit is contained in:
parent
71f3c66599
commit
f9273f43e1
1 changed files with 28 additions and 0 deletions
28
.github/workflows/analyze.yaml
vendored
Normal file
28
.github/workflows/analyze.yaml
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
name: Flutter Analyze
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
env:
|
||||||
|
FLUTTER_VERSION: '3.10.6'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
analyze:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-java@v2
|
||||||
|
with:
|
||||||
|
distribution: 'adopt'
|
||||||
|
- uses: subosito/flutter-action@v1
|
||||||
|
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
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue