Skip to content

Upgrade GitHub Actions to Build and Run CTest #105

Description

@mitchcamza

Upgrade GitHub Actions to Build and Run CTest

Description

Enhance the existing GitHub Actions CI workflow so that every push and pull request runs a full build and test cycle using CMake + GoogleTest + CTest.

This converts CI into a real quality gate and strengthens the project’s DevOps/SRE and QA/SDET signal.


Triggers

  • push
  • pull_request

CI Jobs

Build and Test (Matrix)

  • Operating systems:
    • Ubuntu (required)
    • Windows (recommended)
    • macOS (recommended)

Steps

  • Checkout repository
  • Install dependencies (Qt, compiler toolchain)
  • Configure project with CMake
  • Build project
  • Run:
    ctest --output-on-failure
    

Deliverables

  • Updated GitHub Actions workflow YAML
  • CI that fails on build or test failure
  • Clear logs for build and test stages

Acceptance Criteria

  • CI fails if any test fails
  • Test failures are visible in workflow logs
  • No manual steps required for CI execution
  • Workflow runs reproducibly across OSes

Optional Enhancements

  • Cache build artifacts or dependencies
  • Upload test logs as artifacts on failure
  • Add CI status badge to README

Notes

  • Keep workflow readable and well-commented
  • Avoid unnecessary complexity in early iterations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions