Skip to content

CI

CI #1098

Workflow file for this run

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.2
with:
fetch-depth: 0
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4.0.0
with:
dotnet-version: 8.0.x
- name: Add NuGet CLI
uses: nuget/setup-nuget@v1.1.1
- 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.3.1
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: Dump Env
if: ${{ always() }}
run: |
gci env:
- name: Run tests
uses: Particular/run-tests-action@v1.7.0