ci: Create dart-analyze.yml

See: https://github.com/ValentinVignal/action-dart-analyze
This commit is contained in:
Calcitem 2021-10-30 09:03:05 +08:00 committed by GitHub
parent 9e6e6a6ac7
commit 2a3afa625a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 0 deletions

23
.github/workflows/dart-analyze.yml vendored Normal file
View File

@ -0,0 +1,23 @@
name: Dart Analyze
on:
push:
pull_request:
branches: [ master ]
jobs:
linter:
runs-on: ubuntu-latest
name: Lint flutter code
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Flutter
uses: subosito/flutter-action@v1
- run: bash -x ./flutter-init.sh
- run: cp -f ./src/ui/flutter_app/analysis_options.yaml ./
- name: Analyze Flutter
uses: ValentinVignal/action-dart-analyze@v0.11
with:
fail-on: 'format'
working-directory: src/ui/flutter_app