chore(release): bump on-prem to 1.7.0 #4
This file contains hidden or 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-azure | |
| # Builds the Azure-native solution (Functions + HybridAgent + Web.Azure + Shared + Core) | |
| # and lints the Bicep templates. Triggered ONLY when paths relevant to the Azure | |
| # stack change. The shared Core path is intentionally listed here AND in | |
| # build-onprem.yml so a single Core change exercises BOTH stacks in parallel | |
| # (this replaces the former build-both.yml regression guard). | |
| on: | |
| push: | |
| branches: [master, main, feature/**] | |
| paths: | |
| - 'src/BitLockerKeyMonitor.Functions/**' | |
| - 'src/BitLockerKeyMonitor.HybridAgent/**' | |
| - 'src/BitLockerKeyMonitor.Web.Azure/**' | |
| - 'src/BitLockerKeyMonitor.Shared/**' | |
| - 'src/BitLockerKeyMonitor.Core/**' | |
| - 'tests/BitLockerKeyMonitor.Core.Tests/**' | |
| - 'tests/BitLockerKeyMonitor.Functions.Tests/**' | |
| - 'tests/BitLockerKeyMonitor.HybridAgent.Tests/**' | |
| - 'BitLockerKeyMonitor.Azure.slnx' | |
| - 'Directory.Build.props' | |
| - 'infra/**' | |
| - 'Deploy-Azure.ps1' | |
| - 'Deploy-HybridAgent.ps1' | |
| - '.github/workflows/build-azure.yml' | |
| pull_request: | |
| branches: [master, main] | |
| paths: | |
| - 'src/BitLockerKeyMonitor.Functions/**' | |
| - 'src/BitLockerKeyMonitor.HybridAgent/**' | |
| - 'src/BitLockerKeyMonitor.Web.Azure/**' | |
| - 'src/BitLockerKeyMonitor.Shared/**' | |
| - 'src/BitLockerKeyMonitor.Core/**' | |
| - 'tests/BitLockerKeyMonitor.Core.Tests/**' | |
| - 'tests/BitLockerKeyMonitor.Functions.Tests/**' | |
| - 'tests/BitLockerKeyMonitor.HybridAgent.Tests/**' | |
| - 'BitLockerKeyMonitor.Azure.slnx' | |
| - 'Directory.Build.props' | |
| - 'infra/**' | |
| - 'Deploy-Azure.ps1' | |
| - 'Deploy-HybridAgent.ps1' | |
| - '.github/workflows/build-azure.yml' | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| name: Build BitLockerKeyMonitor.Azure.slnx | |
| 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 BitLockerKeyMonitor.Azure.slnx | |
| - name: Build | |
| run: dotnet build BitLockerKeyMonitor.Azure.slnx --no-restore --nologo -v minimal -c Release | |
| - name: Test (Functions + HybridAgent) | |
| 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 | |
| bicep-lint: | |
| runs-on: ubuntu-latest | |
| name: Bicep build + lint | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Bicep CLI | |
| run: | | |
| curl -Lo bicep https://github.com/Azure/bicep/releases/latest/download/bicep-linux-x64 | |
| chmod +x ./bicep | |
| sudo mv ./bicep /usr/local/bin/bicep | |
| bicep --version | |
| - name: Build Bicep (lint + compile) | |
| run: bicep build infra/main.bicep --outdir ./bicep-out |