name: Build on: push: branches: [ main ] pull_request: branches: [ main ] jobs: build-and-test: runs-on: [self-hosted, proxmox, integration] timeout-minutes: 15 container: image: mcr.microsoft.com/dotnet/sdk:9.0 options: --user root steps: - uses: actions/checkout@v5 - name: Restore dependencies run: dotnet restore - name: Build net9.0 run: dotnet build --configuration Release --framework net9.0 --no-restore - name: Test net9.0 run: dotnet test tests/PSProxmoxVE.Core.Tests/PSProxmoxVE.Core.Tests.csproj --configuration Release --framework net9.0 --no-build --verbosity normal --collect:"XPlat Code Coverage" --results-directory ./coverage - name: Upload coverage if: always() uses: actions/upload-artifact@v4 with: name: coverage-net9 path: ./coverage