-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a Github action to run tests on push
- Loading branch information
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
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 |