Skip to content

feat(deploy): add -HybridAgentPrincipalId param to Deploy-Azure.ps1 #26

feat(deploy): add -HybridAgentPrincipalId param to Deploy-Azure.ps1

feat(deploy): add -HybridAgentPrincipalId param to Deploy-Azure.ps1 #26

Workflow file for this run

name: build-both
on:
push:
branches: [master, main, feature/**]
pull_request:
branches: [master, main]
jobs:
build:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
solution:
- BitLockerKeyMonitor.slnx
- BitLockerKeyMonitor.Azure.slnx
name: Build ${{ matrix.solution }}
steps:
- uses: actions/checkout@v4
- name: Setup .NET 10
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Restore
run: dotnet restore ${{ matrix.solution }}
- name: Build
run: dotnet build ${{ matrix.solution }} --no-restore --nologo -v minimal -c Release
- name: Test (Core tests; same project is shared by both solutions)
if: matrix.solution == 'BitLockerKeyMonitor.slnx'
run: dotnet test ${{ matrix.solution }} --no-build --no-restore --verbosity minimal -c Release
- name: Test (Azure-only test projects)
if: matrix.solution == 'BitLockerKeyMonitor.Azure.slnx'
run: |
dotnet test tests/BitLockerKeyMonitor.Functions.Tests/BitLockerKeyMonitor.Functions.Tests.csproj --no-build --no-restore --verbosity minimal -c Release
dotnet test tests/BitLockerKeyMonitor.HybridAgent.Tests/BitLockerKeyMonitor.HybridAgent.Tests.csproj --no-build --no-restore --verbosity minimal -c Release