Skip to content

ps9310/flutter-code-quality

 
 

Repository files navigation

flutter-code-quality

This action is designed to format and test Flutter repositories on pull requests. It helps ensure that your code meets the required quality standards.

Usage

Follow the instructions below to integrate this action into your workflow.

jobs:
  code-quality:
    runs-on: ubuntu-latest
    steps:
      # Checkout branch
      - uses: actions/checkout@v4
      # Set up Flutter within the action
      - uses: subosito/flutter-action@v2
        with:
          # See https://github.com/subosito/flutter-action
      - uses: ZebraDevs/[email protected]
        with:
          # Token used for authentication.
          token: ${{secrets.GITHUB_TOKEN}}

Inputs

Name Description Required Default
token Token used for pushing fixes and commenting on PRs. true
run-tests Whether tests should be run. false true
run-analysis Whether static analysis should be run. false true
run-coverage Whether code coverage should be run. false true
run-behind-by Whether action should check if HEAD branch is behind base branch. false true
create-comment Whether the action should comment the output status. false true
working-directory Working directory to run the action in false "."

Contributing

This project welcomes contributions. Please check out our Contributing guide to learn more on how to get started.

License

This project is released under the MIT License.

About

A PR action for Flutter code quality

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 88.6%
  • Dart 10.9%
  • JavaScript 0.5%