CI #1063
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: CI | |
on: | |
push: | |
branches: | |
- master | |
- release-* | |
pull_request: | |
workflow_dispatch: | |
env: | |
DOTNET_NOLOGO: true | |
defaults: | |
run: | |
shell: pwsh | |
jobs: | |
build: | |
name: Windows | |
runs-on: windows-2019 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.1.7 | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET SDK | |
uses: actions/setup-dotnet@v4.0.1 | |
with: | |
dotnet-version: 8.0.x | |
- name: Add NuGet CLI | |
uses: nuget/setup-nuget@v2.0.0 | |
- name: Restore sfproj packages | |
run: nuget restore src/AcceptanceTestsApplication/packages.config -PackagesDirectory src/packages | |
- name: Build | |
run: dotnet build src --configuration Release | |
- name: Upload packages | |
uses: actions/upload-artifact@v4.4.0 | |
with: | |
name: NuGet packages | |
path: nugets/ | |
retention-days: 7 | |
- name: Set up 5-node cluster | |
shell: powershell | |
run: | | |
# Import the cluster setup utility module | |
$scriptsPath = (Get-ItemProperty 'HKLM:\Software\Microsoft\Service Fabric SDK').FabricSDKScriptsPath | |
echo "Service Fabric SDK Install Path: $scriptsPath" | |
Get-ChildItem $sdkInstallPath | |
$modulePath = Join-Path -Path $scriptsPath -ChildPath "DefaultLocalClusterSetup.psm1" | |
echo "Service Fabric Scripting Module Path: $modulePath" | |
Import-Module $modulePath | |
$result = Set-LocalClusterReady -createOneNodeCluster $False -createMeshCluster $False -isSecure $False | |
echo $result | |
exit 0 | |
- name: Run tests | |
uses: Particular/run-tests-action@v1.7.0 | |