Add a Github action to run tests on push #1
Workflow file for this run
This file contains 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
name: Run tests | |
on: | |
push: | |
branches: master | |
jobs: | |
build-and-test: | |
runs-on: windows-2022 | |
steps: | |
- name: Print installed Windows SDK versions | |
shell: pwsh | |
continue-on-error: true | |
run: Get-ChildItem -Name "HKLM:\SOFTWARE\Microsoft\Windows Kits\Installed Roots" | |
- name: Add MSBuild to the PATH | |
uses: microsoft/[email protected] | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Build debug binaries | |
run: msbuild /r /m /p:Configuration=Debug /p:Platform=x64 build\foo_openlyrics.sln | |
- name: Run tests | |
run: .\x64\Debug\test_foo_openlyrics.exe .\x64\Debug\foo_openlyrics.dll |