Update package description and version number #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |