chore: fix metrics workflow
Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
name: Dart Code Metrics
|
name: Dart Code Metrics
|
||||||
|
|
||||||
|
env:
|
||||||
|
folders: "example, lib, test"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
@@ -10,13 +13,41 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
name: dart-code-metrics
|
name: dart-code-metrics
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: dart-code-metrics
|
|
||||||
|
- name: "Stream Chat Metrics"
|
||||||
uses: dart-code-checker/dart-code-metrics-action@v1
|
uses: dart-code-checker/dart-code-metrics-action@v1
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
folders: 'packages'
|
relative_path: 'packages/stream_chat'
|
||||||
|
folders: ${{ env.folders }}
|
||||||
|
|
||||||
|
- name: "Stream Chat Flutter Metrics"
|
||||||
|
uses: dart-code-checker/dart-code-metrics-action@v1
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
relative_path: 'packages/stream_chat_flutter'
|
||||||
|
folders: ${{ env.folders }}
|
||||||
|
|
||||||
|
- name: "Stream Chat Flutter Core Metrics"
|
||||||
|
uses: dart-code-checker/dart-code-metrics-action@v1
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
relative_path: 'packages/stream_chat_flutter_core'
|
||||||
|
folders: ${{ env.folders }}
|
||||||
|
|
||||||
|
- name: "Stream Chat Localizations Metrics"
|
||||||
|
uses: dart-code-checker/dart-code-metrics-action@v1
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
relative_path: 'packages/stream_chat_localizations'
|
||||||
|
folders: ${{ env.folders }}
|
||||||
|
|
||||||
|
- name: "Stream Chat Persistence Metrics"
|
||||||
|
uses: dart-code-checker/dart-code-metrics-action@v1
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
relative_path: 'packages/stream_chat_persistence'
|
||||||
|
folders: ${{ env.folders }}
|
||||||
Reference in New Issue
Block a user