Add GitHub Actions CI/CD workflows for build/test and code coverage#4
Draft
Add GitHub Actions CI/CD workflows for build/test and code coverage#4
Conversation
Co-authored-by: divinepablo <87882202+divinepablo@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add GitHub Actions workflows for CI/CD automation
Add GitHub Actions CI/CD workflows for build/test and code coverage
Mar 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds automated CI pipelines for a CMake/GTest C++ project with no existing GitHub Actions setup.
Workflows
build-and-test.ymlmasterdefaultCMake preset (Release), builds, and runs all three test suites (compiler_tests,linker_tests,runtime_tests) with--output-on-failurecoverage.ymlmaster--coverageinstrumentation, generates lcov report (excluding/usr/*, googletest, vrEmu6502, tests), uploads to Codecov via${{ secrets.CODECOV_TOKEN }}Security
Both jobs scope
GITHUB_TOKENtopermissions: contents: read.Original prompt
Add GitHub Actions workflows for CI/CD to automate build, test, and code coverage reporting.
Requirements
Create two GitHub Actions workflows:
1. Build and Test Workflow (
.github/workflows/build-and-test.yml)2. Code Coverage Workflow (
.github/workflows/coverage.yml)--coverage)Context
The nixie repository is a 65C02 compiler/language project (98% C++) with:
compiler_tests,linker_tests,runtime_testsBoth workflows should be placed in
.github/workflows/directory and will help maintain code quality and prevent regressions.The following is the prior conversation context from the user's chat exploration (may be truncated):
User: what github actions should i add to my repository (please analyze it to see what fits)
Assistant: I'll analyze your repository to understand its structure and recommend appropriate GitHub Actions for your C++ project.
Assistant: Based on my analysis of your repository, here are the GitHub Actions I recommend adding to divinepablo/nixie:
Recommended GitHub Actions
1. Continuous Integration (CI) - Build & Test ✅ HIGH PRIORITY
Your repository has:
Recommended Action:
build-and-test.yml2. Code Coverage ⭐ HIGH PRIORITY
Since you have comprehensive tests, track coverage to ensure quality:
Recommended Action:
coverage.yml3. Multi-Platform Build Matrix 🔧 MEDIUM PRIORITY
Your CMakeUserPresets include Clang configuration—test across platforms:
Recommended Action:
multi-platform.yml4. Linting & Static Analysis 🔍 MEDIUM PRIORITY
98% C++ means enforcing code quality:
Recommended Action:
lint.yml5. VS Code Extension Publishing (Optional) ⚙️ LOW PRIORITY
You have a nixie-extension package:
Recommended Action:
publish-extension.yml