Skip to content

Commit

Permalink
Add a Github action to run tests on push
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquesh committed Jul 14, 2024
1 parent 53e709d commit a7feee3
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: release
name: Build and publish a release
on:
# NOTE: We specifically do *not* support `workflow_dispatch` here, because if we run this from
# workflow_dispatch, it will create a tag & release named /refs/heads/master or similar.
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/run_tests.yml
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

0 comments on commit a7feee3

Please sign in to comment.