GhaylStackDocumentationv1.0.2
العربيةWebsite
Testing

Testing

Continuous integration and release evidence

Read each workflow by what it verifies, and keep build, publication and runtime acceptance separate.

Read the workflow map

The source repository contains five workflow files. Their definitions describe what can run; a workflow file is not itself proof of a successful run.

Workflow Main responsibility
backend.yml Backend build, unit/integration tests, coverage, migrator smoke and gated package/container publication
frontend.yml Admin/Dashboard lint, build, mocked browser tests and container startup/restart checks
template-smoke.yml Pack and install the template, generate an independent application and build it
source-archive.yml Download the exact Git archive, build outside Git and exercise an actual runtime sign-in path
codeql.yml C# CodeQL analysis with a manual build

Open the repository Actions history and select the commit you are assessing. Record individual job results, including jobs that did not run.

Understand change filtering

Backend and frontend workflows detect relevant changed paths. On a pull request affecting only the other layer, heavy jobs can be skipped while an always-running named gate still succeeds. This allows required checks to resolve without spending time on unrelated work.

Therefore a green aggregate gate on a documentation-only or client-only change does not mean every backend test executed on that run. Inspect the job graph and the detected-change output. For a change touching shared behavior, verify that the intended workflow filters include its path.

Separate build and test evidence

Backend CI restores from global.json, builds with warnings as errors, prepares Chromium for PDF cases, runs unit and integration projects, and merges coverage reports. Coverage enforcement checks valid totals and the configured minimum against actual covered lines.

Frontend CI runs both clients and tests container configuration on start and restart. Browser routes are mocked in the regular Playwright suites. The archive workflow provides a separate real-runtime check. Report these as distinct forms of evidence; passing a mocked UI suite does not establish a healthy database or a successful API sign-in.

CodeQL's manual build disables NuGet audit for that analysis build so new advisories do not prevent code scanning from running. Backend CI separately audits direct vulnerable packages and reports transitive advisories. Do not infer that code scanning replaces dependency auditing.

Verify the distributed artifact

The template workflow packs the actual NuGet artifact, installs it and generates a renamed application. This catches missing template files, stale solution references and naming substitutions that an in-repository build can miss.

The source-archive workflow downloads the exact commit archive and verifies it outside a Git checkout. Its current trigger includes manual dispatch and a named distribution branch; it is not an automatic runtime test of every main-branch change. Run or inspect the relevant archive verification before claiming a new distribution is accepted.

Keep publication explicit

Backend publication jobs are conditional on repository variables ENABLE_DEV_CONTAINER_PUBLISH or ENABLE_RELEASE_PUBLISH, together with their event and branch conditions. A successful validation run does not imply packages or containers were published. Check the resulting release or registry artifact separately when assessing distribution.

For a pull request, describe the actual problem, the affected behavior and relevant verification. Include the tested commit and job links, and disclose any required check that failed or was not run. Avoid copying a historical test total into a new release without matching evidence.

Respond to failures at the right layer

Inspect the first failing step and its artifact. A missing image, disk exhaustion or browser installation error differs from a failed business assertion. Reproduce the smallest relevant check, fix the cause, then repeat the gate needed for the change. Use testing for local commands and releases for version-specific evidence.

Implementation references

View MarkdownBack to top

Search documentation

Use ↑ ↓ to move, Enter to open and Esc to close.