GitHub Action
Flutterando Metrics GitHub Action allows you to integrate Flutterando Metrics into your CI/CD process and get code quality reports inside PR's.
Usage
Create flutterandometrics.yaml
under .github/workflows
with the following content (the default configuration listed):
flutterandometrics.yaml
name: Flutterando Metrics
on: [push]
jobs:
check:
name: flutterando_metrics-action
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: flutterando_metrics
uses: Flutterando/flutterando_metrics-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Inputs
Inputs
Name | Required | Description | Default |
---|---|---|---|
github_token | ☑️ | Required to post a report on GitHub. Note: the secret GITHUB_TOKEN is already provided by GitHub and you don't have to set it up yourself. | |
github_pat | Required if you had private GitHub repository in the package dependencies | Personal access token must access to repo and read:user scopes | |
folders | List of folders whose contents will be scanned. | [lib ] | |
relative_path | If your package isn't at the root of the repository, set this input to indicate its location. | ||
pull_request_comment | Publish detailed report commented directly into your pull request. | false | |
analyze_report_title_pattern | Configurable analyze report title pattern. | Flutterando Metrics analyze report of $packageName | |
fatal_warnings | Treat warning level issues as fatal. | false | |
fatal_performance | Treat performance level issues as fatal. | false | |
fatal_style | Treat style level issues as fatal. | false | |
check_unused_files | Additional scan for find unused files in package. | false | |
check_unused_files_folders | List of folders whose contents will be scanned for find unused files. | Taken from folders argument | |
unused_files_report_title_pattern | Configurable unused files report title pattern. | Flutterando Metrics unused files report of $packageName |