chore: update metrics workflow

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2021-10-01 16:45:18 +05:30
committed by xsahil03x
parent 3152fadacb
commit 36a2ee11a7
+21 -1
View File
@@ -1,6 +1,7 @@
name: Dart Code Metrics
env:
flutter_version: "2.5.0"
folders: "lib, test"
on:
@@ -15,7 +16,26 @@ jobs:
name: dart-code-metrics
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: "Git Checkout"
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: "Cache Flutter dependencies"
uses: actions/cache@v2
with:
path: /opt/hostedtoolcache/flutter
key: ${{ env.flutter_version }}-flutter
- name: "Install Flutter"
uses: subosito/flutter-action@v1
with:
flutter-version: ${{ env.flutter_version }}
- name: "Install Tools"
run: flutter pub global activate melos
- name: "Bootstrap Workspace"
run: melos bootstrap
- name: "Stream Chat Metrics"
uses: dart-code-checker/dart-code-metrics-action@v1