Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/validate_repo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,21 @@ jobs:
with:
dart-sdk: main

# For pre-submit, check for missing or breaking changes that don't have a
# corresponding override label.
# For post-submit, ignore platform interface breaking version changes and
# missing version/CHANGELOG detection since PR-level overrides aren't available
# in post-submit.
- name: Run 'validate' for general repo best practices
if: ${{ !cancelled() && steps.setup.outcome == 'success' }}
run: |
dart pub global run flutter_plugin_tools validate
if [ "${{ github.event_name }}" == "push" ]; then
dart pub global run flutter_plugin_tools validate --ignore-platform-interface-breaks
else
dart pub global run flutter_plugin_tools validate --check-for-missing-changes --pr-labels="$(gh api --jq '.labels.[].name' /repos/flutter/core-packages/pulls/${{ github.event.number }} | paste -sd ',' -)"
fi
env:
GH_TOKEN: ${{ github.token }}

- name: Run 'format' to check for formatting violations
if: ${{ !cancelled() && steps.setup.outcome == 'success' }}
Expand Down
Loading