Skip to content

Convert ElasticListView to a Flutter Package #2

Convert ElasticListView to a Flutter Package

Convert ElasticListView to a Flutter Package #2

Workflow file for this run

name: Code metrics
# Controls when the workflow will run
on:
# Triggers the workflow on pull request events but only for the master branch
pull_request:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
code_metrics:
name: "Code Metrics"
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Setup Flutter
uses: subosito/[email protected]
- name: Cache dependencies
uses: actions/[email protected]
with:
path: |
$PUB_CACHE
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }}
restore-keys: |
${{ runner.os }}-pub-
- name: Get dependencies
run: flutter pub get
- name: Check for unused files and code
run: |
dart run dart_code_metrics:metrics check-unused-files lib || exit 1
dart run dart_code_metrics:metrics check-unused-code lib || exit 1