ci(static-analisys): flutter code metrics added

This commit is contained in:
Anatoliy Poloz
2024-02-27 11:37:46 +03:00
parent cbeca63262
commit c30769a97c
3 changed files with 60 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
name: Android Release
# 1
on: [push, pull_request]
# 4
jobs:
# 5
build:
# 6
runs-on: ubuntu-latest
# 7
steps:
# 8
- uses: actions/checkout@v3
# 9
- uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: "12.x"
# 10
- uses: subosito/flutter-action@v2
with:
# 11
flutter-version: "3.0.0"
channel: "stable"
# 12
- name: Get dependencies
run: flutter pub Get
- name: Run Code Metrics
run: flutter pub run dart_code_metrics:metrics --reporter=github lib
# Runs a set of commands using the runners shell
- name: Start release build
run: flutter build appbundle