Bump MSTest.TestFramework from 3.3.1 to 3.5.2 #147
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test (CI) | |
on: | |
pull_request: | |
branches: ["master"] | |
workflow_dispatch: | |
jobs: | |
build: | |
name: CI Build | |
strategy: | |
matrix: | |
configuration: [Release] | |
runs-on: windows-latest | |
env: | |
Solution_Name: ServiceFabric.Mocks.sln | |
Test_Project_File: \test\ServiceFabric.Mocks.NetCoreTests\ServiceFabric.Mocks.NetCoreTests.csproj | |
Test_Project_Path: \test\ServiceFabric.Mocks.NetCoreTests | |
Wap_Project_Path: \src\ServiceFabric.Mocks\ServiceFabric.Mocks.csproj | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
# create version | |
- name: Bump version and push tag (what-if) | |
id: tag_version | |
uses: loekd/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
dry_run: true | |
# Install the .NET Core workload | |
- name: Install .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 6.0.x | |
# Install SF SDK | |
- name: Install SF | |
shell: pwsh | |
run: | | |
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force -Scope CurrentUser | |
$ProgressPreference = 'SilentlyContinue' | |
Invoke-RestMethod -OutFile setup.exe -Method GET -Uri https://download.microsoft.com/download/b/8/a/b8a2fb98-0ec1-41e5-be98-9d8b5abf7856/MicrosoftServiceFabric.10.1.1951.9590.exe | |
#.\setup.exe /accepteula /force /quiet | |
Start-Process setup.exe -UseNewEnvironment -ArgumentList '/accepteula /force /quiet' -Wait | |
# Create SNK | |
- name: Create SNK | |
shell: pwsh | |
run: | | |
.\ExtractPrivateKey.ps1 "${{ secrets.Pfx_Key }}" | |
# Run dotnet build | |
- name: Run build | |
run: dotnet build --configuration RELEASE | |
# Execute all unit tests in the solution | |
- name: Execute unit tests | |
run: dotnet test --logger "trx;LogFileName=results.trx" ${Test_Project_File} |