{"id":25253135,"url":"https://github.com/zgosalvez/github-actions-analyze-dart","last_synced_at":"2025-10-26T23:31:22.997Z","repository":{"id":39848523,"uuid":"320971863","full_name":"zgosalvez/github-actions-analyze-dart","owner":"zgosalvez","description":"A Github Action to analyze your project's Dart code","archived":false,"fork":false,"pushed_at":"2025-02-09T07:20:01.000Z","size":1713,"stargazers_count":24,"open_issues_count":6,"forks_count":13,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-09T07:34:44.793Z","etag":null,"topics":["actions","dart","flutter","github","github-actions"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/analyze-dart","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zgosalvez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"zgosalvez"}},"created_at":"2020-12-13T03:00:08.000Z","updated_at":"2025-02-09T07:19:25.000Z","dependencies_parsed_at":"2023-01-11T17:21:47.622Z","dependency_job_id":"b7759e2e-d754-4034-a69b-d7389fa3c4cf","html_url":"https://github.com/zgosalvez/github-actions-analyze-dart","commit_stats":{"total_commits":129,"total_committers":7,"mean_commits":"18.428571428571427","dds":0.2945736434108527,"last_synced_commit":"3503eeb1ae59677731cea29bccc508280546e759"},"previous_names":[],"tags_count":53,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgosalvez%2Fgithub-actions-analyze-dart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgosalvez%2Fgithub-actions-analyze-dart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgosalvez%2Fgithub-actions-analyze-dart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgosalvez%2Fgithub-actions-analyze-dart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zgosalvez","download_url":"https://codeload.github.com/zgosalvez/github-actions-analyze-dart/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238410638,"owners_count":19467455,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","dart","flutter","github","github-actions"],"created_at":"2025-02-12T04:20:16.023Z","updated_at":"2025-10-26T23:31:22.565Z","avatar_url":"https://github.com/zgosalvez.png","language":"JavaScript","funding_links":["https://github.com/sponsors/zgosalvez"],"categories":[],"sub_categories":[],"readme":"# GitHub Action — Analyze Dart\n\nThis GitHub Action (written in JavaScript) allows you to leverage GitHub Actions to analyze your Dart project's Dart code, including Flutter. This runs both the `dart analyze` and `dartfmt` commands under the hood.\n\n## Usage\n### Pre-requisites\nCreate a workflow `.yml` file in your `.github/workflows` directory. An [example workflow](#common-workflow) is available below. For more information, reference the GitHub Help Documentation for [Creating a workflow file](https://help.github.com/en/articles/configuring-a-workflow#creating-a-workflow-file).\n\n### Inputs\nFor more information on these inputs, see the [Workflow syntax for GitHub Actions](https://docs.github.com/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepswith)\n\n- `fail-on-infos`: The action fails if any info was found. This will always fail on errors. Optional. Default: `false`\n- `fail-on-warnings`: The action fails if any warning was found. This will always fail on errors. Optional. Default: `false`\n- `working-directory`: The working directory. Optional. Default: `./`\n- `line-length`: The maximum line length. Optional. The formatter will use its default: `80`\n\n### Outputs\nNone.\n\nSample Workflow Summary:\n![Screenshot](assets/annotations.png)\n\nSample Files Changed:\n![Screenshot](assets/files_changed.png)\n\n### Dart workflow\n\n1. Your workflow must install Dart before using this action. Suggestion: [Dart starter workflow](https://github.com/actions/starter-workflows/blob/main/ci/dart.yml).\n2. Use the action. For example:\n```yaml\non: push\n\nname: Sample Workflow\n\njobs:\n  build:\n    name: Example\n    runs-on: ubuntu-latest\n    container:\n      image:  google/dart:latest\n    steps:\n      - name: Checkout code\n        uses: actions/checkout@v2\n      - name: Install dependencies\n        run: dart pub get\n      - name: Analyze Dart\n        uses: zgosalvez/github-actions-analyze-dart@v3\n```\n\n### Flutter workflow\n\n1. Your workflow must install Flutter before using this action. Suggestion: [Flutter action](https://github.com/marketplace/actions/flutter-action).\n2. Use the action. For example:\n```yaml\non: push\n\nname: Sample Workflow\n\njobs:\n  build:\n    name: Example\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout code\n        uses: actions/checkout@v2\n      - name: Set up Flutter\n        uses: subosito/flutter-action@v1\n      - run: flutter pub get\n      - name: Analyze Dart\n        uses: zgosalvez/github-actions-analyze-dart@v3\n```\n\n### Custom Workflow\n\nAfter following the [common workflow](#common-workflow) above, lint rules can be customized. For more details see:\n- [`pedantic`](https://github.com/dart-lang/pedantic) for rules enforced internally at Google\n- [`effective_dart`](https://github.com/tenhobi/effective_dart) for rules corresponding to the [Effective Dart](https://dart.dev/guides/language/effective-dart) style guide\n\n### Flutter Workflows\n\nThis is used in my opinionated [GitHub Actions: Flutter Workflows](https://github.com/zgosalvez/github-actions-flutter-workflows) repository along with other actions for a complete end-to-end DevOps experience.\n\n## License\nThe scripts and documentation in this project are released under the [MIT License](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzgosalvez%2Fgithub-actions-analyze-dart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzgosalvez%2Fgithub-actions-analyze-dart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzgosalvez%2Fgithub-actions-analyze-dart/lists"}