ci(build): fix dir permissions and disable sunset warning

This commit is contained in:
apoloz
2024-02-27 12:34:01 +00:00
parent 0193d046a8
commit ee852e899f

View File

@@ -31,15 +31,16 @@ jobs:
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
- run: |
flutter --version
- name: fix dir permissions
run: |
git config --global --add safe.directory /opt/hostedtoolcache/flutter/stable-3.19.0-x64
flutter --version
- name: Get dependencies
run: flutter pub get
- name: Run Code Metrics
run: flutter pub run dart_code_metrics:metrics lib
run: flutter pub run dart_code_metrics:metrics lib --disable-sunset-warning
# - name: Build apk
# run: flutter build apk