16
16
17
17
runs-on : windows-latest
18
18
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
21
21
22
22
steps :
23
23
- uses : actions/checkout@v3
@@ -28,28 +28,24 @@ jobs:
28
28
with :
29
29
dotnet-version : 6.0.x
30
30
31
- # Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
32
31
- name : Setup MSBuild.exe
33
32
34
33
35
- # Execute all unit tests in the solution
36
34
- name : Execute unit tests
35
+ working-directory : Server
37
36
run : dotnet test
38
37
39
- # Restore the application to populate the obj folder with RuntimeIdentifiers
40
38
- name : Restore the application
41
39
run : msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
42
40
env :
43
41
Configuration : ${{ matrix.configuration }}
44
42
45
- # Decode the base 64 encoded pfx and save the Signing_Certificate
46
43
- name : Decode the pfx
47
44
run : |
48
45
$pfx_cert_byte = [System.Convert]::FromBase64String("${{ secrets.Base64_Encoded_Pfx }}")
49
46
$certificatePath = Join-Path -Path $env:Wap_Project_Directory -ChildPath GitHubActionsWorkflow.pfx
50
47
[IO.File]::WriteAllBytes("$certificatePath", $pfx_cert_byte)
51
48
52
- # Create the app package by building and packaging the Windows Application Packaging project
53
49
- name : Create the app package
54
50
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 }}
55
51
env :
0 commit comments