Skip to content

Run only the pipeline jobs a change needs - #80

Merged
stphnwlsh merged 1 commit into
mainfrom
chore/run-only-needed-jobs
Dec 5, 2026
Merged

stphnwlsh merged 1 commit into
mainfrom
chore/run-only-needed-jobs

Conversation

@stphnwlsh

Copy link
Copy Markdown
Member

Summary

Carries the pipeline change proven on CleanMinimalApi (#105, #108, #109 and #117) to this template. A first job, Changes, sorts the changed files with dorny/paths-filter, and Build, Test, Dependency Review and Container Scan only run when the change needs them. Static Analysis runs on every pull request, because the code scanning rule on main expects both CodeQL scans. The Summary shows a job that wasn't needed as not run. Scheduled and manual runs, and copies outside the organisation, run everything as before. The ci-pipeline and branches-and-pull-requests skills and CONTRIBUTING.md say so too.

Related issues

Closes LeanMeanCleanApps/.github#128

Type of change

  • Bug fix
  • New feature
  • Breaking change (the generated solution or template parameters change in a way existing users will notice)
  • Refactoring or clean-up
  • Documentation
  • Build, pipeline or dependency update

Shared layers

  • This only touches the Presentation layer of this template.
  • This touches the Application or Infrastructure layers, tests, pipeline or repository setup, so it needs to be carried across all five templates.

Checklist

  • dotnet build and dotnet test pass locally with no warnings.
  • I added or updated tests, and line coverage stays at or above 95%.
  • I updated the README or docs where behaviour changed.
  • If this changes how we do something, I updated the matching skill in .agents/skills.
  • I checked the template still installs and creates a working solution (see CONTRIBUTING.md).

@stphnwlsh stphnwlsh self-assigned this Dec 5, 2026
@github-actions github-actions Bot added the build label Dec 5, 2026
@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown

Build Pipeline

✅ Ready to merge. Every stage passed.

Stage Result Details
Build 🟢 Passed Version 2026.12.05.242-pr-80 · Template package 212 KB
Test 🟢 Passed 203 passed · 0 failed · 0 skipped · Template installs, builds and passes its tests
Coverage 🟢 Passed 100% (792 of 792 lines) · Needs 95%
Static Analysis 🟢 Passed No open CodeQL alerts
Dependency Review 🟢 Passed 0 vulnerable packages · 0 licence problems
Container Scan 🟢 Passed Image starts and answers · 1 open Trivy alert, none blocking: 1 low · 1 ignored in .trivyignore

Commit 5061ede · Full run

@stphnwlsh
stphnwlsh merged commit 3728e24 into main Dec 5, 2026
14 checks passed
@stphnwlsh
stphnwlsh deleted the chore/run-only-needed-jobs branch December 5, 2026 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Run only the pipeline jobs a change needs

1 participant