Conditional running of CI workflow jobs
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 8.8k
- Forks
- 2.1k
- Avg merge
- 20h 7m
- Merged PRs (30d)
- 41
Description
When documentation-only changes are made to a PR, we currently let all the workflow jobs run. That uses a lot of resources.
Consider implementing conditional execution of workflows depending on what files changed in a commit. For example, if the only changes are in the changelog folders, then do not bother running unit and acceptance tests, just run the various commit format, PR title etc lint checks.
Possible GitHub action to do this:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the repository's GitHub Actions workflow definitions and the proposed dorny/paths-filter action. Identify how changed paths can distinguish documentation or changelog-only changes from code changes. Done means documentation-only pull requests skip unit and acceptance tests while retaining commit-format, PR-title, and other lint checks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions
- Domain
- ci-cd
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100