ci(clean-code): tune flatter specific

This commit is contained in:
Anatoliy Poloz
2024-02-27 16:02:10 +03:00
parent 519c1f01bb
commit ca798a0546
2 changed files with 13 additions and 15 deletions

View File

@@ -7,7 +7,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install jq
@@ -19,17 +18,17 @@ jobs:
with:
distribution: "zulu"
java-version: "12.x"
cache: 'gradle'
cache: "gradle"
- uses: actions/flutter-action@v2
with:
channel: 'stable'
flutter-version: '3.19.0'
channel: "stable"
flutter-version: "3.19.0"
cache: true
cache-key: 'flutter-:os:-:channel:-:version:-:arch:-:hash:' # optional, change this to force refresh cache
cache-path: '${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:' # optional, change this to specify the cache path
pub-cache-key: 'flutter-pub:os:-:channel:-:version:-:arch:-:hash:' # optional, change this to force refresh cache of dart pub get dependencies
pub-cache-path: '${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:' # optional, change this to specify the cache path
cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" # optional, change this to force refresh cache
cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:" # optional, change this to specify the cache path
pub-cache-key: "flutter-pub:os:-:channel:-:version:-:arch:-:hash:" # optional, change this to force refresh cache of dart pub get dependencies
pub-cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:" # optional, change this to specify the cache path
- name: fix dir permissions
run: |
@@ -40,11 +39,10 @@ jobs:
run: flutter pub get
- name: Run Code Metrics
run: flutter pub run dart_code_metrics:metrics lib --disable-sunset-warning
run: flutter pub run dart_code_metrics:metrics lib --disable-sunset-warning --fatal-warnings --fatal-performance
# - name: Build apk
# run: flutter build apk
# Runs a set of commands using the runners shell
# Runs a set of commands using the runners shell
# - name: Start release build
# run: flutter build appbundle

View File

@@ -4,7 +4,7 @@ analyzer:
dart_code_metrics:
extends:
- package:dart_code_metrics_presets/all.yaml
- package:dart_code_metrics_presets/flutter_all.yaml
# extends:
# - recommended
# anti-patterns: