mirror of
https://github.com/GoodOlClint/PSProxmoxVE.git
synced 2026-08-20 18:02:16 +00:00
fix(ci): align all projects on net9.0, upgrade actions to v5, enable VM tests
- Change test projects from net10.0 to net9.0 to match source projects - Update build workflow from net8.0 to net9.0 - Upgrade checkout to v5, setup-dotnet to v5 across all workflows - Remove outdated PS 7.2 test matrix entries - Restructure integration tests: create test keeps VM alive so start/stop, snapshot, and cloud-init tests can use it instead of skipping. AfterAll handles cleanup. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
+12
-12
@@ -10,11 +10,11 @@ jobs:
|
||||
build-net48:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v5
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@v4
|
||||
uses: actions/setup-dotnet@v5
|
||||
with:
|
||||
dotnet-version: '8.0.x'
|
||||
dotnet-version: '9.0.x'
|
||||
- name: Restore dependencies
|
||||
run: dotnet restore
|
||||
- name: Build net48
|
||||
@@ -27,25 +27,25 @@ jobs:
|
||||
name: coverage-net48
|
||||
path: ./coverage
|
||||
|
||||
build-net8:
|
||||
build-net9:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [windows-latest, ubuntu-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v5
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@v4
|
||||
uses: actions/setup-dotnet@v5
|
||||
with:
|
||||
dotnet-version: '8.0.x'
|
||||
dotnet-version: '9.0.x'
|
||||
- name: Restore dependencies
|
||||
run: dotnet restore
|
||||
- name: Build net8.0
|
||||
run: dotnet build --configuration Release --framework net8.0 --no-restore
|
||||
- name: Test net8.0
|
||||
run: dotnet test tests/PSProxmoxVE.Core.Tests/PSProxmoxVE.Core.Tests.csproj --configuration Release --framework net8.0 --no-build --verbosity normal --collect:"XPlat Code Coverage" --results-directory ./coverage
|
||||
- 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
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: coverage-net8-${{ matrix.os }}
|
||||
name: coverage-net9-${{ matrix.os }}
|
||||
path: ./coverage
|
||||
|
||||
Reference in New Issue
Block a user