mirror of
https://github.com/microsoft/calculator.git
synced 2025-03-12 04:35:52 -07:00
* Squashed commit of the following: commit a7d403386e3df430edf67d89ca23f81313022d2d Author: Tian Liao <tilia@microsoft.com> Date: Mon Aug 12 16:58:30 2024 +0800 remove pfx from ignore list commit 26ffa46d9a92dcbadc9d9d471715fdec10c6f013 Author: Tian Liao <tilia@microsoft.com> Date: Mon Aug 12 16:58:07 2024 +0800 Remove PFXs * fix yaml * fix gh action * fix gh action
33 lines
1.0 KiB
YAML
33 lines
1.0 KiB
YAML
# This template contains jobs to run unit tests.
|
|
|
|
parameters:
|
|
platform: ''
|
|
runsettingsFileName: ''
|
|
|
|
jobs:
|
|
- job: UnitTests${{ parameters.platform }}
|
|
displayName: UnitTests ${{ parameters.platform }}
|
|
dependsOn: Build${{ parameters.platform }}
|
|
condition: succeeded()
|
|
variables:
|
|
skipComponentGovernanceDetection: true
|
|
UnitTestsDir: $(Pipeline.Workspace)\drop-${{ parameters.platform }}\CalculatorUnitTests\AppPackages\CalculatorUnitTests_Test
|
|
steps:
|
|
- checkout: self
|
|
fetchDepth: 1
|
|
|
|
- download: current
|
|
displayName: Download CalculatorUnitTests
|
|
artifact: drop-${{ parameters.platform }}
|
|
patterns: '**/CalculatorUnitTests_Test/**'
|
|
|
|
- powershell: |
|
|
$(Build.SourcesDirectory)/build/scripts/SignTestApp.ps1 -AppToSign '$(UnitTestsDir)\CalculatorUnitTests.msix'
|
|
displayName: Sign unit tests
|
|
|
|
- task: VSTest@2
|
|
displayName: Run CalculatorUnitTests
|
|
inputs:
|
|
testAssemblyVer2: $(UnitTestsDir)\CalculatorUnitTests.msix
|
|
otherConsoleOptions: /Platform:${{ parameters.platform }}
|