-
Notifications
You must be signed in to change notification settings - Fork 152
ci: Execute workflows only when relevant files updated #642
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
base: dev
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds path filtering to GitHub Actions workflows to optimize CI/CD execution by running workflows only when relevant files are modified. The changes aim to reduce unnecessary workflow runs and conserve CI/CD resources by triggering workflows based on file patterns rather than running on every commit.
- Adds path filters to Python testing and linting workflows to run only when Python source files, requirements, or tests change
- Configures Node.js build workflow to trigger only on frontend file changes (TypeScript, JavaScript, CSS, HTML, etc.)
- Implements path filtering for Docker build workflow to run when source code, frontend files, or Dockerfiles are modified
- Updates deployment workflow to trigger based on application code, infrastructure files, and configuration changes
- Removes the deprecated deploy-v2.yml workflow file (853 lines deleted)
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 14 comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/python-app.yml | Adds path filters for Python files, requirements, tests, and the workflow file itself to trigger Python application tests |
| .github/workflows/pylint.yml | Configures path filters to run linting only on Python source files (excluding tests) and related configuration files |
| .github/workflows/node.js.yml | Adds comprehensive path filters for frontend file types (TS, TSX, JS, JSX, JSON, CSS, SCSS, HTML) |
| .github/workflows/docker-build-and-push.yml | Implements path filters for Docker builds including source code, frontend files, and Dockerfile changes with test exclusions |
| .github/workflows/deploy-v2.yml | Complete removal of deprecated deployment workflow (file deleted) |
| .github/workflows/deploy-linux.yml | Adds path filters for deployment triggers including source code, infrastructure files, and Azure YAML configurations |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Purpose
pathsfilter. This ensures that workflows only run when relevant files are changed, improving CI efficiency and reducing unnecessary runs.Does this introduce a breaking change?
Golden Path Validation
Deployment Validation
What to Check
Verify that the following are valid
Other Information