A command-line tool for commenting dart analyze --format=machine $dir
results to GitHub PullRequest.
- Dart SDK version >=2.15.0 <3.0.0
name: "analyze"
on:
pull_request:
jobs:
dart:
runs-on: ubuntu-latest
steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v3
# https://github.com/dart-lang/setup-dart
- uses: dart-lang/setup-dart@v1
# https://github.com/blendthink/elixir
- uses: blendthink/elixir@v2
with:
# (Optional) GITHUB_TOKEN or a `repo` scoped Personal Access Token (PAT).
# Default: ${{ github.token }}
token: ''
# (Optional) Directory to run the `dart analyze`.
# Default: ./
dir: ''
This package uses Git internally.
If you are using GitHub Actions, you can skip steps 1.
https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
dart pub global activate elixir
cd {git-repository-path}
elixir run \
--repo={repo} \
--num={num} \
--base={base} \
--head={head} \
--dir={dir}
You should follow our Code of Conduct.
See Contributor Guide for contributing conventions.
blendthink |