Table of Contents
Performs checks against Dart and Flutter code to ensure the package does not have any analysis issues, failed tests, or improperly formatted code (as defined by dart format
).
This will also run the Google Open Source Vulnerability scanner to scan the package for vulnerabilities.
Name | Default | Description |
---|---|---|
channel |
stable |
Channel to pull for Dart / Flutter's SDK |
flutter_version |
any |
Flutter version within the channel to use |
generate_code |
false |
State whether or not to run the code generator before validating |
path |
. |
Path for the package being validated |
sarif_category |
security-results |
Unique name of the sarif category for use in monorepos |
sarif_file |
results.sarif |
Name of the file emitted by the osv-scanner reporting engine |
skip_sarif |
false |
Set to true to skip uploading the sarif artifact |
name: Validate plugin
on:
pull_request:
branches: [main]
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Validate
uses: peiffer-innovations/actions-flutter-validate@v2