Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 3 additions & 1 deletion .agents/skills/ci-pipeline/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,16 @@ One workflow, `.github/workflows/build-pipeline.yml`, runs on every pull request

After those, Release Check and Publish only run on the monthly release (`releases`).

Actions from GitHub (`actions/*` and `github/*`) are referenced by their major version tag. Actions from anyone else are pinned to a commit SHA with the version in a comment beside it, because the CodeQL scan of the workflows reports an unpinned third-party action. Dependabot keeps both up to date.

A copy made with GitHub's "Use this template" gets this workflow with no secrets or setup. Outside the LeanMeanCleanApps organisation it runs only the format check, build and tests: Static Analysis, Dependency Review, Container Scan, the template's pack and verify steps, Release Check and Publish all check `github.repository_owner` and skip, and the Summary shows them as not run. Skipped jobs count as passed for required checks, so a private copy goes green without Advanced Security. A solution made with `dotnet new` gets the much smaller `template/ci.yml` as `.github/workflows/ci.yml` instead. `ci-for-your-solution` covers both. Keep any new job that needs Advanced Security, a secret or the template folders behind the same owner check.

## Steps

1. Read the Summary comment first; it names the unhappy check and links to its details.
2. Reproduce locally where you can (every command finds the `.slnx` in the root on its own): `dotnet format --verify-no-changes`, `dotnet build`, `dotnet test`, the coverage command in `coverage`, `docker build . --target run`.
3. Fix the cause in the code. For security findings, see `security-findings`.
4. Changing the workflow itself: keep each tool as an off-the-shelf action, keep the job names (they're the required check names), and keep everything working in someone else's copy of the template with no secrets or setup.
4. Changing the workflow itself: keep each tool as an off-the-shelf action (`.github/actions/pipeline-report` is the only one of our own), keep the job names (they're the required check names), and keep everything working in someone else's copy of the template with no secrets or setup.

## Don't

Expand Down
2 changes: 2 additions & 0 deletions .agents/skills/coverage/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ metadata:

Total line coverage across every test project, merged into one report, must be at least 95%. The pipeline fails below that, and nobody lowers the number. Coverage comes from Coverlet (`coverlet.msbuild`).

The gate is checked on the merged report, against `COVERAGE_THRESHOLD` in the workflow. Coverlet's own `Threshold` setting isn't used, because it would judge each test project on a partly merged report.

Excluded on purpose, and only these:

| Excluded | How | Why |
Expand Down
2 changes: 1 addition & 1 deletion .agents/skills/time-provider/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ updatedReview.DateModified.ShouldBe(this.database.TimeProvider.GetUtcNow().UtcDa
- Store local times.
- Assert a date with a tolerance ("within a second of now"). Fix the clock and assert the exact value.

The one exception, in a solution with authentication, is the test that creates a token for the real JWT handler, which checks expiry against the system clock (`tests/Presentation.Tests.Integration/Authentication/AuthenticationTests.cs`).
The one exception, in a solution with authentication, is the test that creates a token for the real JWT handler, which checks expiry against the system clock (`tests/Presentation.Tests.Integration/Authentication/AuthenticationTests.cs`, in the templates that have token authentication).

## Check

Expand Down
Loading