mirror of
https://github.com/GoodOlClint/PSProxmoxVE.git
synced 2026-08-12 15:16:52 +00:00
558053dc74
All CI now runs on the self-hosted runner using Docker containers, eliminating GitHub-hosted runner minute consumption: - Unit tests: PS 7.5 container (mcr.microsoft.com/powershell:7.5-ubuntu-24.04) with .NET SDK 9.0 installed at build time - Build/xUnit: .NET SDK 9.0 container (mcr.microsoft.com/dotnet/sdk:9.0) - Integration tests: unchanged (runs directly on self-hosted runner) Drops net48/PS 5.1 CI matrix (Windows-only, can't run in Linux containers). Local Docker testing available via tests/Dockerfile.test. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
35 lines
904 B
YAML
35 lines
904 B
YAML
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
|