ci: Create dart-analyze.yml
See: https://github.com/ValentinVignal/action-dart-analyze
This commit is contained in:
parent
9e6e6a6ac7
commit
2a3afa625a
|
@ -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
|
Loading…
Reference in New Issue