fix gh action

This commit is contained in:
Tian Liao 2024-08-12 20:15:03 +08:00
commit f30df270d0

View file

@ -91,6 +91,10 @@ jobs:
with: with:
name: Build-${{ matrix.platform }} name: Build-${{ matrix.platform }}
path: ${{ github.workspace }}/output path: ${{ github.workspace }}/output
- uses: actions/upload-artifact@v4
with:
name: Tools-${{ matrix.platform }}
path: ${{ github.workspace }}/build/scripts/SignTestApp.ps1
unitTests: unitTests:
needs: [defineBuilds, build] needs: [defineBuilds, build]
@ -107,10 +111,13 @@ jobs:
with: with:
name: Build-${{ matrix.platform }} name: Build-${{ matrix.platform }}
path: ${{ github.workspace }}/download path: ${{ github.workspace }}/download
- uses: actions/download-artifact@v4
name: Download tools
with:
name: Tools-${{ matrix.platform }}
path: ${{ github.workspace }}/download/tools
- run: | - run: |
${{ env.testDir }}/Add-AppDevPackage.ps1 ` ${{ github.workspace }}/download/tools/SignTestApp.ps1 -AppToSign ${{ env.testDir }}/CalculatorUnitTests.msix
-CertificatePath ${{ env.testDir }}/CalculatorUnitTests.cer `
-Force
shell: pwsh shell: pwsh
name: Install test certificate name: Install test certificate
- uses: ilammy/msvc-dev-cmd@v1 # this is a workaround because microsoft/vstest-action is broken. - uses: ilammy/msvc-dev-cmd@v1 # this is a workaround because microsoft/vstest-action is broken.
@ -131,16 +138,18 @@ jobs:
with: with:
name: Build-x64 name: Build-x64
path: ${{ github.workspace }}/download path: ${{ github.workspace }}/download
- uses: actions/download-artifact@v4
name: Download tools
with:
name: Tools-${{ matrix.platform }}
path: ${{ github.workspace }}/download/tools
- run: | - run: |
Set-DisplayResolution -Width 1920 -Height 1080 -Force Set-DisplayResolution -Width 1920 -Height 1080 -Force
shell: pwsh shell: pwsh
name: Set screen resolution name: Set screen resolution
- run: | - run: |
${{ env.appDir }}/Add-AppDevPackage.ps1 ` ${{ github.workspace }}/download/tools/SignTestApp.ps1 -AppToSign '${{ env.appDir }}/Calculator_*.msixbundle'
-CertificatePath ${{ env.appDir }}/Calculator*.cer ` ${{ env.appDir }}/Add-AppDevPackage.ps1 -Force
-Force
${{ env.appDir }}/Add-AppDevPackage.ps1 `
-Force
shell: powershell shell: powershell
name: Install app name: Install app
- run: | - run: |