p-ranav / argparse

Argument Parser for Modern C++
MIT License
2.61k stars 245 forks source link

Add GitHub Actions to run tests for PR #128

Closed skrobinson closed 3 years ago

skrobinson commented 3 years ago

Is there any interest in using GitHub Actions to run tests on pull requests?

I have set up a proof of concept (e.g. it does not quite work as I would hope) on my argparse fork at https://github.com/skrobinson/argparse/actions/workflows/ci.yml to show the potential. If this is something we want to have, I can polish this into a PR.

p-ranav commented 3 years ago

There is definitely interest. Having to run the tests for each PR is annoying and it would be good to have the action run the tests. Likewise, it would be good to run cppcheck or other static analysis and have the action make a comment on the PR with "No issues found" or "3 issues found" along with comments in code. I've used this in other projects: https://github.com/JacobDomagala/StaticAnalysis