Skip to content

Commit

Permalink
Github actions darenm/[email protected] removed as deprecated.
Browse files Browse the repository at this point in the history
UnitTest project renamed to "HexCtrl Test".
  • Loading branch information
jovibor committed Oct 30, 2024
1 parent 459839d commit 6ca685d
Show file tree
Hide file tree
Showing 21 changed files with 8 additions and 9 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ on:

env:
PATH_PROJ_HEXCTRLDLL: '"./VS Projects/HexCtrl DLL/HexCtrl DLL.vcxproj"'
PATH_PROJ_HEXCTRLTEST: '"./VS Projects/UnitTest/UnitTest.vcxproj"'
PATH_TESTDLL: '"C:\HexCtrlTEMP\UnitTest.dll"'
PATH_PROJ_HEXCTRLTEST: '"./VS Projects/HexCtrl Test/HexCtrl Test.vcxproj"'
PATH_VSTESTCONSOLE_EXE: '"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe"'
PATH_TESTDLL: '"C:\HexCtrlTEMP\HexCtrl Test.dll"'
PATH_TEMPDIR: '"C:\HexCtrlTEMP\"'
BUILD_CONFIG: Debug
BUILD_PLATFORM_x64: x64
Expand Down Expand Up @@ -38,9 +39,7 @@ jobs:
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild /m ${{env.PATH_PROJ_HEXCTRLTEST}} /p:Configuration=${{env.BUILD_CONFIG}} /p:Platform=${{env.BUILD_PLATFORM_x64}} /p:OutDir=${{env.PATH_TEMPDIR}} /p:LinkerAdditionalDir=${{env.PATH_TEMPDIR}}

- name: Setup VSTest Path
uses: darenm/[email protected]

- name: Run UnitTest_x64
- name: Run HexCtrlTest_x64
working-directory: ${{env.GITHUB_WORKSPACE}}
run: vstest.console.exe ${{env.PATH_TESTDLL}}
run: |
& ${{env.PATH_VSTESTCONSOLE_EXE}} ${{env.PATH_TESTDLL}}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<RootNamespace>UnitTest</RootNamespace>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
<ProjectSubType>NativeUnitTestProject</ProjectSubType>
<ProjectName>UnitTest</ProjectName>
<ProjectName>HexCtrl Test</ProjectName>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
Expand Down
2 changes: 1 addition & 1 deletion VS Projects/HexCtrl.sln
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HexCtrl DLL", "HexCtrl DLL\
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Sample Dialog DLL", "Sample Dialog DLL\Sample Dialog DLL.vcxproj", "{C76E6C72-C970-47D1-91B1-F2B9EACBBE93}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "UnitTest", "UnitTest\UnitTest.vcxproj", "{337EEC2C-B9B1-49D6-A526-59F01742AF51}"
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HexCtrl Test", "HexCtrl Test\HexCtrl Test.vcxproj", "{337EEC2C-B9B1-49D6-A526-59F01742AF51}"
ProjectSection(ProjectDependencies) = postProject
{557B0ABE-E81A-4BD1-AD98-DC68F44D9A0D} = {557B0ABE-E81A-4BD1-AD98-DC68F44D9A0D}
EndProjectSection
Expand Down

0 comments on commit 6ca685d

Please sign in to comment.