Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(all): Skip required features if no code changed #1302

Merged
merged 2 commits into from Oct 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/all_plugins_skipper.yaml
@@ -0,0 +1,30 @@
name: all_plugins

# Workflow to skip required checks if no plugin code changed
# Name of the workflow itself and its jobs should correspond to required checks that needs to be skipped
# More info can be found here: https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks

on:
pull_request:
paths:
- "docs/**"
- "website/**"
- "**.md"

jobs:
analyze:
name: "Flutter Analyze"
runs-on: ubuntu-latest
steps:
- run: 'echo "No analyze required as only docs or non-plugin files changed"'

check_formatting:
name: "Check code formatting"
runs-on: ubuntu-latest
steps:
- run: 'echo "No format check required as only docs or non-plugin files changed"'

test:
runs-on: ubuntu-latest
steps:
- run: 'echo "No tests required as only docs or non-plugin files changed"'