From 7171cadab124e5a9800e6529e0e0a5538a8bb14a Mon Sep 17 00:00:00 2001 From: Jake Macdonald Date: Mon, 9 Sep 2024 19:51:02 +0000 Subject: [PATCH] add health checks for breaking changes, changelogs, pubspecs, etc --- .github/workflows/health.yaml | 13 +++++++++++++ .github/workflows/post_summaries.yaml | 16 ++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .github/workflows/health.yaml create mode 100644 .github/workflows/post_summaries.yaml diff --git a/.github/workflows/health.yaml b/.github/workflows/health.yaml new file mode 100644 index 00000000000..e8154f45142 --- /dev/null +++ b/.github/workflows/health.yaml @@ -0,0 +1,13 @@ +name: Health +on: + pull_request: + branches: [ main, master ] + types: [opened, synchronize, reopened, labeled, unlabeled] +jobs: + health: + uses: dart-lang/ecosystem/.github/workflows/health.yaml@main + with: + use-flutter: true + checks: "version,changelog,license,breaking,do-not-submit,leaking" + permissions: + pull-requests: write diff --git a/.github/workflows/post_summaries.yaml b/.github/workflows/post_summaries.yaml new file mode 100644 index 00000000000..6943e951282 --- /dev/null +++ b/.github/workflows/post_summaries.yaml @@ -0,0 +1,16 @@ +name: Comment on the pull request + +on: + # Trigger this workflow after the Health workflow completes. This workflow will have permissions to + # do things like create comments on the PR, even if the original workflow couldn't. + workflow_run: + workflows: + - Health + types: + - completed + +jobs: + upload: + uses: dart-lang/ecosystem/.github/workflows/post_summaries.yaml@main + permissions: + pull-requests: write