Skip to content

peiffer-innovations/actions-flutter-validate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

actions-flutter-validate

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.

Inputs

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

Example usage

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