75 lines
2.1 KiB
YAML
75 lines
2.1 KiB
YAML
name: Dart Code Metrics
|
|
|
|
env:
|
|
flutter_version: "3.10.4"
|
|
folders: "lib, test"
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'packages/**'
|
|
push:
|
|
branches:
|
|
- master
|
|
- develop
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
check:
|
|
name: dart-code-metrics
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: "Git Checkout"
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: "Install Flutter"
|
|
uses: subosito/flutter-action@v2
|
|
with:
|
|
cache: true
|
|
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@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
relative_path: 'packages/stream_chat'
|
|
folders: ${{ env.folders }}
|
|
|
|
- name: "Stream Chat Flutter Core Metrics"
|
|
uses: dart-code-checker/dart-code-metrics-action@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
relative_path: 'packages/stream_chat_flutter_core'
|
|
folders: ${{ env.folders }}
|
|
|
|
- name: "Stream Chat Flutter Metrics"
|
|
uses: dart-code-checker/dart-code-metrics-action@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
relative_path: 'packages/stream_chat_flutter'
|
|
folders: ${{ env.folders }}
|
|
|
|
- name: "Stream Chat Localizations Metrics"
|
|
uses: dart-code-checker/dart-code-metrics-action@v3
|
|
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@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
relative_path: 'packages/stream_chat_persistence'
|
|
folders: ${{ env.folders }}
|