add a GitHub Actions workflow to run tests on PRs - #94
Conversation
|
Dang, the Linux builder doesn't have |
You can use a pre-build script to install the tools you need for running the full test suite :) |
|
I figured out how to use the prebuild scripts you linked and wired up a separate job for running |
|
It looks like GNU Make can't find the CMake executable in the Windows tests, and i'm not sure how to force that path to be available. I'm going to disable the Make tests on Windows for now since we can at least build the Swift package there. Now the new checks should all work, and should be ready for review. |
This is a first-brush attempt at adding PR checks to swift-cmark, based on the CommonMark test suite. Swift-cmark additions are tested in the
api_testexecutable, but there are other tests inherited from CommonMark and GitHub-Flavored Markdown that are important to run as well. This workflow attempts to run both by defining separate jobs that run eithermake test(with a pre-build step to make suremakeand CMake are installed) orswift run api_test, asswift testitself would fail due to having no test targets.The workflow attempts to run the tests on the primary trio of macOS/Linux/Windows. If we want to add other platforms like FreeBSD or Android in the future, we'll need to do something similar with their build commands, but it should be relatively straightforward to adapt them based on the existing platforms.