Skip to content

ci: 243 unit testing added to cicd pipeline - #246

Merged
frayle-ons merged 7 commits into
mainfrom
243-unit-testing-add-to-cicd-pipeline
Oct 27, 2026
Merged

frayle-ons merged 7 commits into
mainfrom
243-unit-testing-add-to-cicd-pipeline

Conversation

@frayle-ons

@frayle-ons frayle-ons commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

✨ Summary

These changes add unit test testing into the CI GitHub actions workflow.
Specifically, the unit test checks now run as an additional job under the CI workflow, distinct from lint-test, and is conditioned to run only when a PR's status is set as 'ready for review' (and all all subsequent updates to the ready for review PR).

The unit tests are run using the Makefile command make run-tests-all for consistency.

      - name: Run unit tests
        run: make run-tests-all

📜 Changes Introduced

  • test: updated ci.yml to include unit testing run

✅ Checklist

Changes pass all configured pre-commit steps

🔍 How to Test

Start by checking out the branch that corresponds to this PR. Then create your own PR, saving it as draft and viewing the CI jobs that run. It should show that lint-test is skipped. Following this, convert the test PR to ready for review and observe that the skipped job does run. Inspecting the drop down, see that the unit tests do indeed run as part of the CI step.

@frayle-ons
frayle-ons marked this pull request as ready for review October 16, 2026 18:07
@frayle-ons
frayle-ons requested a review from a team as a code owner October 16, 2026 18:07
@github-actions github-actions Bot added the CI/CD label Oct 27, 2026
@frayle-ons

Copy link
Copy Markdown
Contributor Author

I've updated the PR to use the latest version of unit tests in main. The CI now invokes the make file, which provides a standardised way to run all unit tests. Finally, I've split the unit-tests out into their own CI job that triggers at the same time as the lint-test job, and can run in parallel. The ci.yml code has been updated for this.

See below a screenshot of the running ci process on push to this PR, we can see the unit tests running separately:

Screenshot 2026-10-27 at 17 48 32

@lukeroantreeONS lukeroantreeONS left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to approve

@frayle-ons
frayle-ons merged commit ab903a4 into main Oct 27, 2026
8 checks passed
@frayle-ons
frayle-ons deleted the 243-unit-testing-add-to-cicd-pipeline branch October 27, 2026 18:25
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.

2 participants