GitHub Actions in .github/workflows/main.yaml, built on
Very Good Workflows (@v1):
| Job | Workflow | What it checks |
|---|---|---|
semantic-pull-request |
semantic_pull_request.yml |
PR title follows Conventional Commits |
spell-check |
spell_check.yml |
cspell over **/*.md and **/*.dart using .github/cspell.json |
build |
flutter_package.yml |
flutter pub get, dart format, flutter analyze, flutter test --coverage, min coverage 50% |
Notes:
run_bloc_lintistrue: the app includespackage:bloc_lint/recommended.yamlinanalysis_options.yaml. Run it locally withbloc lint lib(fromdart pub global activate bloc_tools).- Each package under
packages/has its own job (key-value-storage-client,file-system-client,project-repository). - Spell check: add legitimate project words to the
wordslist in.github/cspell.jsoninstead of rewording code. - Runners are pinned to
runs_on: ubuntu-24.04(spell-check, build and any package jobs).semantic_pull_request.ymlhas noruns_oninput and always usesubuntu-latest; don't pass the input to it, or the workflow fails. - Dependabot (
.github/dependabot.yaml) updates pub and GitHub Actions weekly.
When creating packages/<name>, add a job (keep min_coverage: 50):
<name>:
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1 # or flutter_package.yml
with:
working_directory: packages/<name>
min_coverage: 50
runs_on: ubuntu-24.04Optionally restrict it with paths: filters in a dedicated workflow file
(.github/workflows/<name>.yaml) so it only runs when the package changes.