1616
1717 runs-on : windows-latest
1818 env :
19- Solution_Name : shader-ls.sln # Replace with your solution name, i.e. MyWpfApp.sln.
20- Test_Project_Path : Server\shader-ls.csproj # Replace with the path to your test project, i.e. MyWpfApp.Tests\MyWpfApp.Tests.csproj.
19+ Solution_Name : Server\ shader-ls.sln
20+ Test_Project_Path : Server\shader-ls.csproj
2121
2222 steps :
2323 - uses : actions/checkout@v3
@@ -28,28 +28,24 @@ jobs:
2828 with :
2929 dotnet-version : 6.0.x
3030
31- # Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
3231 - name : Setup MSBuild.exe
33323433
35- # Execute all unit tests in the solution
3634 - name : Execute unit tests
35+ working-directory : Server
3736 run : dotnet test
3837
39- # Restore the application to populate the obj folder with RuntimeIdentifiers
4038 - name : Restore the application
4139 run : msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
4240 env :
4341 Configuration : ${{ matrix.configuration }}
4442
45- # Decode the base 64 encoded pfx and save the Signing_Certificate
4643 - name : Decode the pfx
4744 run : |
4845 $pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.Base64_Encoded_Pfx }}")
4946 $certificatePath = Join-Path -Path $env:Wap_Project_Directory -ChildPath GitHubActionsWorkflow.pfx
5047 [IO.File]::WriteAllBytes("$certificatePath", $pfx_cert_byte)
5148
52- # Create the app package by building and packaging the Windows Application Packaging project
5349 - name : Create the app package
5450 run : msbuild $env:Wap_Project_Path /p:Configuration=$env:Configuration /p:UapAppxPackageBuildMode=$env:Appx_Package_Build_Mode /p:AppxBundle=$env:Appx_Bundle /p:PackageCertificateKeyFile=GitHubActionsWorkflow.pfx /p:PackageCertificatePassword=${{ secrets.Pfx_Key }}
5551 env :
0 commit comments