Bump Microsoft.ServiceFabric.* from 7.1.1541 to 7.1.1951 #103
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 # PowerShell Core 7.4 introduced an issue which requires resetting $env:PSModulePath | |
run: | | |
$env:PSModulePath = '' | |
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force -Scope CurrentUser | |
$ProgressPreference = 'SilentlyContinue' | |
Invoke-WebRequest -OutFile setup.exe -Uri https://download.microsoft.com/download/b/8/a/b8a2fb98-0ec1-41e5-be98-9d8b5abf7856/MicrosoftServiceFabric.10.0.1816.9590.exe | |
.\setup.exe /accepteula /force /quiet | |
# Create SNK | |
- name: Create SNK | |
shell: pwsh | |
env: | |
SNK_PASSWORD: ${{ secrets.PFX_KEY }} | |
run: | | |
.\ExtractPrivateKey.ps1 "$env:SNK_PASSWORD" | |
# 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} |