feat(azure): infra Bicep modules + App Configuration + Key Vault (Bat… #2
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-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 |