From 287c740ab9d2c58071029919d0f07a77bdc634d2 Mon Sep 17 00:00:00 2001 From: WingZer0o Date: Fri, 12 Sep 2025 23:35:55 -0400 Subject: [PATCH 01/11] workflows --- .github/workflows/pr-tests-linux.yml | 27 ++++++++++++++++++++++++++ .github/workflows/pr-tests-windows.yml | 27 ++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 .github/workflows/pr-tests-linux.yml create mode 100644 .github/workflows/pr-tests-windows.yml diff --git a/.github/workflows/pr-tests-linux.yml b/.github/workflows/pr-tests-linux.yml new file mode 100644 index 0000000..7b9fd6f --- /dev/null +++ b/.github/workflows/pr-tests-linux.yml @@ -0,0 +1,27 @@ +name: CI + +on: + pull_request: + branches: [ main ] + + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + dotnet-version: [6.0, 7.0, 8.0, 9.0] + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: ${{ matrix.dotnet-version }} + + - name: Run tests + run: | + # Run tests that target the runtime matching the SDK where possible. + # Most test projects will run fine with the installed SDK. + dotnet test ./cas-dotnet-sdk-tests/cas-dotnet-sdk-tests.csproj -c Release --logger "trx" \ No newline at end of file diff --git a/.github/workflows/pr-tests-windows.yml b/.github/workflows/pr-tests-windows.yml new file mode 100644 index 0000000..b8d5ba0 --- /dev/null +++ b/.github/workflows/pr-tests-windows.yml @@ -0,0 +1,27 @@ +name: CI + +on: + pull_request: + branches: [ main ] + + +jobs: + build: + runs-on: windows-latest + strategy: + matrix: + dotnet-version: [6.0, 7.0, 8.0, 9.0] + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: ${{ matrix.dotnet-version }} + + - name: Run tests + run: | + # Run tests that target the runtime matching the SDK where possible. + # Most test projects will run fine with the installed SDK. + dotnet test ./cas-dotnet-sdk-tests/cas-dotnet-sdk-tests.csproj -c Release --logger "trx" \ No newline at end of file From 908d42e697080f1fe8fcbcf4193466b13d33472d Mon Sep 17 00:00:00 2001 From: WingZer0o Date: Fri, 12 Sep 2025 23:40:10 -0400 Subject: [PATCH 02/11] changes --- .github/workflows/pr-tests-linux.yml | 39 +++++++++++++++++++----- .github/workflows/pr-tests-windows.yml | 41 +++++++++++++++++++++----- 2 files changed, 65 insertions(+), 15 deletions(-) diff --git a/.github/workflows/pr-tests-linux.yml b/.github/workflows/pr-tests-linux.yml index 7b9fd6f..cec47e6 100644 --- a/.github/workflows/pr-tests-linux.yml +++ b/.github/workflows/pr-tests-linux.yml @@ -1,16 +1,23 @@ -name: CI +name: PR Tests - Linux on: pull_request: branches: [ main ] - jobs: build: runs-on: ubuntu-latest strategy: matrix: - dotnet-version: [6.0, 7.0, 8.0, 9.0] + include: + - dotnet-version: 6.0 + tfm: net6.0 + - dotnet-version: 7.0 + tfm: net7.0 + - dotnet-version: 8.0 + tfm: net8.0 + - dotnet-version: 9.0 + tfm: net9.0 steps: - name: Checkout repository uses: actions/checkout@v4 @@ -20,8 +27,26 @@ jobs: with: dotnet-version: ${{ matrix.dotnet-version }} - - name: Run tests + - name: Restore (test project only, pinned TF) + run: | + echo "Restoring test project for framework ${{ matrix.tfm }}" + dotnet restore ./cas-dotnet-sdk-tests/cas-dotnet-sdk-tests.csproj --framework ${{ matrix.tfm }} + + - name: Build (override framework) run: | - # Run tests that target the runtime matching the SDK where possible. - # Most test projects will run fine with the installed SDK. - dotnet test ./cas-dotnet-sdk-tests/cas-dotnet-sdk-tests.csproj -c Release --logger "trx" \ No newline at end of file + echo "Building solution for framework ${{ matrix.tfm }}" + dotnet build ./cas-dotnet-sdk.sln -c Release --no-restore -f ${{ matrix.tfm }} + + - name: Run tests (override framework) + run: | + echo "Running tests for framework ${{ matrix.tfm }}" + dotnet test ./cas-dotnet-sdk-tests/cas-dotnet-sdk-tests.csproj -c Release --no-build -f ${{ matrix.tfm }} --logger "trx" + + - name: Upload test results + if: always() + uses: actions/upload-artifact@v4 + with: + name: TestResults-dotnet-${{ matrix.dotnet-version }} + path: | + **/TestResults/*.trx + **/*.trx \ No newline at end of file diff --git a/.github/workflows/pr-tests-windows.yml b/.github/workflows/pr-tests-windows.yml index b8d5ba0..048a8ef 100644 --- a/.github/workflows/pr-tests-windows.yml +++ b/.github/workflows/pr-tests-windows.yml @@ -1,16 +1,23 @@ -name: CI +name: PR Tests - Windows on: pull_request: branches: [ main ] - jobs: build: - runs-on: windows-latest + runs-on: ubuntu-latest strategy: matrix: - dotnet-version: [6.0, 7.0, 8.0, 9.0] + include: + - dotnet-version: 6.0 + tfm: net6.0 + - dotnet-version: 7.0 + tfm: net7.0 + - dotnet-version: 8.0 + tfm: net8.0 + - dotnet-version: 9.0 + tfm: net9.0 steps: - name: Checkout repository uses: actions/checkout@v4 @@ -20,8 +27,26 @@ jobs: with: dotnet-version: ${{ matrix.dotnet-version }} - - name: Run tests + - name: Restore (test project only, pinned TF) + run: | + echo "Restoring test project for framework ${{ matrix.tfm }}" + dotnet restore ./cas-dotnet-sdk-tests/cas-dotnet-sdk-tests.csproj --framework ${{ matrix.tfm }} + + - name: Build (override framework) run: | - # Run tests that target the runtime matching the SDK where possible. - # Most test projects will run fine with the installed SDK. - dotnet test ./cas-dotnet-sdk-tests/cas-dotnet-sdk-tests.csproj -c Release --logger "trx" \ No newline at end of file + echo "Building solution for framework ${{ matrix.tfm }}" + dotnet build ./cas-dotnet-sdk.sln -c Release --no-restore -f ${{ matrix.tfm }} + + - name: Run tests (override framework) + run: | + echo "Running tests for framework ${{ matrix.tfm }}" + dotnet test ./cas-dotnet-sdk-tests/cas-dotnet-sdk-tests.csproj -c Release --no-build -f ${{ matrix.tfm }} --logger "trx" + + - name: Upload test results + if: always() + uses: actions/upload-artifact@v4 + with: + name: TestResults-dotnet-${{ matrix.dotnet-version }} + path: | + **/TestResults/*.trx + **/*.trx \ No newline at end of file From 39da007e4aa7e056db939df55f2e303f3b63bbb3 Mon Sep 17 00:00:00 2001 From: WingZer0o Date: Fri, 12 Sep 2025 23:43:45 -0400 Subject: [PATCH 03/11] fixes --- .github/workflows/pr-tests-linux.yml | 17 ++++------------- .github/workflows/pr-tests-windows.yml | 17 ++++------------- 2 files changed, 8 insertions(+), 26 deletions(-) diff --git a/.github/workflows/pr-tests-linux.yml b/.github/workflows/pr-tests-linux.yml index cec47e6..4edbbba 100644 --- a/.github/workflows/pr-tests-linux.yml +++ b/.github/workflows/pr-tests-linux.yml @@ -1,4 +1,4 @@ -name: PR Tests - Linux +name: CI on: pull_request: @@ -6,7 +6,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: windows-latest strategy: matrix: include: @@ -30,7 +30,7 @@ jobs: - name: Restore (test project only, pinned TF) run: | echo "Restoring test project for framework ${{ matrix.tfm }}" - dotnet restore ./cas-dotnet-sdk-tests/cas-dotnet-sdk-tests.csproj --framework ${{ matrix.tfm }} + dotnet restore ./cas-dotnet-sdk-tests/cas-dotnet-sdk-tests.csproj -p:TargetFramework=${{ matrix.tfm }} - name: Build (override framework) run: | @@ -40,13 +40,4 @@ jobs: - name: Run tests (override framework) run: | echo "Running tests for framework ${{ matrix.tfm }}" - dotnet test ./cas-dotnet-sdk-tests/cas-dotnet-sdk-tests.csproj -c Release --no-build -f ${{ matrix.tfm }} --logger "trx" - - - name: Upload test results - if: always() - uses: actions/upload-artifact@v4 - with: - name: TestResults-dotnet-${{ matrix.dotnet-version }} - path: | - **/TestResults/*.trx - **/*.trx \ No newline at end of file + dotnet test ./cas-dotnet-sdk-tests/cas-dotnet-sdk-tests.csproj -c Release --no-build -f ${{ matrix.tfm }} --logger "trx"s \ No newline at end of file diff --git a/.github/workflows/pr-tests-windows.yml b/.github/workflows/pr-tests-windows.yml index 048a8ef..208c642 100644 --- a/.github/workflows/pr-tests-windows.yml +++ b/.github/workflows/pr-tests-windows.yml @@ -1,4 +1,4 @@ -name: PR Tests - Windows +name: CI on: pull_request: @@ -6,7 +6,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: windows-latest strategy: matrix: include: @@ -30,7 +30,7 @@ jobs: - name: Restore (test project only, pinned TF) run: | echo "Restoring test project for framework ${{ matrix.tfm }}" - dotnet restore ./cas-dotnet-sdk-tests/cas-dotnet-sdk-tests.csproj --framework ${{ matrix.tfm }} + dotnet restore ./cas-dotnet-sdk-tests/cas-dotnet-sdk-tests.csproj -p:TargetFramework=${{ matrix.tfm }} - name: Build (override framework) run: | @@ -40,13 +40,4 @@ jobs: - name: Run tests (override framework) run: | echo "Running tests for framework ${{ matrix.tfm }}" - dotnet test ./cas-dotnet-sdk-tests/cas-dotnet-sdk-tests.csproj -c Release --no-build -f ${{ matrix.tfm }} --logger "trx" - - - name: Upload test results - if: always() - uses: actions/upload-artifact@v4 - with: - name: TestResults-dotnet-${{ matrix.dotnet-version }} - path: | - **/TestResults/*.trx - **/*.trx \ No newline at end of file + dotnet test ./cas-dotnet-sdk-tests/cas-dotnet-sdk-tests.csproj -c Release --no-build -f ${{ matrix.tfm }} --logger "trx" \ No newline at end of file From 109a0c46eab78afbd164c1b13cc5a4cf5c49f6e7 Mon Sep 17 00:00:00 2001 From: WingZer0o Date: Fri, 12 Sep 2025 23:47:02 -0400 Subject: [PATCH 04/11] yup --- .github/workflows/pr-tests-linux.yml | 16 +++------------- .github/workflows/pr-tests-windows.yml | 14 ++------------ 2 files changed, 5 insertions(+), 25 deletions(-) diff --git a/.github/workflows/pr-tests-linux.yml b/.github/workflows/pr-tests-linux.yml index 4edbbba..500f381 100644 --- a/.github/workflows/pr-tests-linux.yml +++ b/.github/workflows/pr-tests-linux.yml @@ -1,4 +1,4 @@ -name: CI +name: PR Tests - Linux on: pull_request: @@ -6,7 +6,7 @@ on: jobs: build: - runs-on: windows-latest + runs-on: ubuntu-latest strategy: matrix: include: @@ -27,17 +27,7 @@ jobs: with: dotnet-version: ${{ matrix.dotnet-version }} - - name: Restore (test project only, pinned TF) - run: | - echo "Restoring test project for framework ${{ matrix.tfm }}" - dotnet restore ./cas-dotnet-sdk-tests/cas-dotnet-sdk-tests.csproj -p:TargetFramework=${{ matrix.tfm }} - - - name: Build (override framework) - run: | - echo "Building solution for framework ${{ matrix.tfm }}" - dotnet build ./cas-dotnet-sdk.sln -c Release --no-restore -f ${{ matrix.tfm }} - - name: Run tests (override framework) run: | echo "Running tests for framework ${{ matrix.tfm }}" - dotnet test ./cas-dotnet-sdk-tests/cas-dotnet-sdk-tests.csproj -c Release --no-build -f ${{ matrix.tfm }} --logger "trx"s \ No newline at end of file + dotnet test ./cas-dotnet-sdk-tests/cas-dotnet-sdk-tests.csproj -c Release --logger "trx" \ No newline at end of file diff --git a/.github/workflows/pr-tests-windows.yml b/.github/workflows/pr-tests-windows.yml index 208c642..0dea0b0 100644 --- a/.github/workflows/pr-tests-windows.yml +++ b/.github/workflows/pr-tests-windows.yml @@ -1,4 +1,4 @@ -name: CI +name: PR Tests - Windows on: pull_request: @@ -27,17 +27,7 @@ jobs: with: dotnet-version: ${{ matrix.dotnet-version }} - - name: Restore (test project only, pinned TF) - run: | - echo "Restoring test project for framework ${{ matrix.tfm }}" - dotnet restore ./cas-dotnet-sdk-tests/cas-dotnet-sdk-tests.csproj -p:TargetFramework=${{ matrix.tfm }} - - - name: Build (override framework) - run: | - echo "Building solution for framework ${{ matrix.tfm }}" - dotnet build ./cas-dotnet-sdk.sln -c Release --no-restore -f ${{ matrix.tfm }} - - name: Run tests (override framework) run: | echo "Running tests for framework ${{ matrix.tfm }}" - dotnet test ./cas-dotnet-sdk-tests/cas-dotnet-sdk-tests.csproj -c Release --no-build -f ${{ matrix.tfm }} --logger "trx" \ No newline at end of file + dotnet test ./cas-dotnet-sdk-tests/cas-dotnet-sdk-tests.csproj -c Release --logger "trx" \ No newline at end of file From 412285c1b04ac61525aae35562428b0b85e566b1 Mon Sep 17 00:00:00 2001 From: WingZer0o Date: Fri, 12 Sep 2025 23:50:20 -0400 Subject: [PATCH 05/11] testing --- .github/workflows/ci.yml | 60 ++++++++++++++++++++++++++ .github/workflows/pr-tests-linux.yml | 16 +++++-- .github/workflows/pr-tests-windows.yml | 16 +++++-- 3 files changed, 84 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..8612517 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,60 @@ +name: CI + +on: + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + include: + - dotnet-version: 6.0.428 + tfm: net6.0 + - dotnet-version: 7.0.413 + tfm: net7.0 + - dotnet-version: 8.0.414 + tfm: net8.0 + - dotnet-version: 9.0.100 + tfm: net9.0 + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: ${{ matrix.dotnet-version }} + + - name: Cache NuGet packages + uses: actions/cache@v4 + with: + path: ~/.nuget/packages + key: nuget-packages-${{ runner.os }}-${{ hashFiles('**/project.assets.json') }} + restore-keys: | + nuget-packages-${{ runner.os }}- + + - name: Restore (test project only, pinned TF) + run: | + echo "Restoring test project for framework ${{ matrix.tfm }}" + dotnet restore ./cas-dotnet-sdk-tests/cas-dotnet-sdk-tests.csproj -p:TargetFramework=${{ matrix.tfm }} + + - name: Build (override framework) + run: | + echo "Building solution for framework ${{ matrix.tfm }}" + dotnet build ./cas-dotnet-sdk.sln -c Release --no-restore -f ${{ matrix.tfm }} + + - name: Run tests (override framework) + run: | + echo "Running tests for framework ${{ matrix.tfm }}" + dotnet test ./cas-dotnet-sdk-tests/cas-dotnet-sdk-tests.csproj -c Release --no-build -f ${{ matrix.tfm }} --logger "trx" + + - name: Upload test results + if: always() + uses: actions/upload-artifact@v4 + with: + name: TestResults-dotnet-${{ matrix.dotnet-version }} + path: | + **/TestResults/*.trx + **/*.trx \ No newline at end of file diff --git a/.github/workflows/pr-tests-linux.yml b/.github/workflows/pr-tests-linux.yml index 500f381..c85a40b 100644 --- a/.github/workflows/pr-tests-linux.yml +++ b/.github/workflows/pr-tests-linux.yml @@ -10,13 +10,13 @@ jobs: strategy: matrix: include: - - dotnet-version: 6.0 + - dotnet-version: 6.0.428 tfm: net6.0 - - dotnet-version: 7.0 + - dotnet-version: 7.0.413 tfm: net7.0 - - dotnet-version: 8.0 + - dotnet-version: 8.0.414 tfm: net8.0 - - dotnet-version: 9.0 + - dotnet-version: 9.0.100 tfm: net9.0 steps: - name: Checkout repository @@ -27,6 +27,14 @@ jobs: with: dotnet-version: ${{ matrix.dotnet-version }} + - name: Cache NuGet packages + uses: actions/cache@v4 + with: + path: ~/.nuget/packages + key: nuget-packages-${{ runner.os }}-${{ hashFiles('**/project.assets.json') }} + restore-keys: | + nuget-packages-${{ runner.os }}- + - name: Run tests (override framework) run: | echo "Running tests for framework ${{ matrix.tfm }}" diff --git a/.github/workflows/pr-tests-windows.yml b/.github/workflows/pr-tests-windows.yml index 0dea0b0..f63b424 100644 --- a/.github/workflows/pr-tests-windows.yml +++ b/.github/workflows/pr-tests-windows.yml @@ -10,13 +10,13 @@ jobs: strategy: matrix: include: - - dotnet-version: 6.0 + - dotnet-version: 6.0.428 tfm: net6.0 - - dotnet-version: 7.0 + - dotnet-version: 7.0.413 tfm: net7.0 - - dotnet-version: 8.0 + - dotnet-version: 8.0.414 tfm: net8.0 - - dotnet-version: 9.0 + - dotnet-version: 9.0.100 tfm: net9.0 steps: - name: Checkout repository @@ -27,6 +27,14 @@ jobs: with: dotnet-version: ${{ matrix.dotnet-version }} + - name: Cache NuGet packages + uses: actions/cache@v4 + with: + path: "%USERPROFILE%\\.nuget\\packages" + key: nuget-packages-${{ runner.os }}-${{ hashFiles('**/project.assets.json') }} + restore-keys: | + nuget-packages-${{ runner.os }}- + - name: Run tests (override framework) run: | echo "Running tests for framework ${{ matrix.tfm }}" From 06174e8689f037902e63a8d2a66aa25b38c0face Mon Sep 17 00:00:00 2001 From: WingZer0o Date: Fri, 12 Sep 2025 23:52:21 -0400 Subject: [PATCH 06/11] okkay --- .github/workflows/ci.yml | 60 -------------------------- .github/workflows/pr-tests-linux.yml | 8 ++-- .github/workflows/pr-tests-windows.yml | 12 +++--- 3 files changed, 10 insertions(+), 70 deletions(-) delete mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 8612517..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: CI - -on: - pull_request: - branches: [ main ] - -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - include: - - dotnet-version: 6.0.428 - tfm: net6.0 - - dotnet-version: 7.0.413 - tfm: net7.0 - - dotnet-version: 8.0.414 - tfm: net8.0 - - dotnet-version: 9.0.100 - tfm: net9.0 - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Setup .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: ${{ matrix.dotnet-version }} - - - name: Cache NuGet packages - uses: actions/cache@v4 - with: - path: ~/.nuget/packages - key: nuget-packages-${{ runner.os }}-${{ hashFiles('**/project.assets.json') }} - restore-keys: | - nuget-packages-${{ runner.os }}- - - - name: Restore (test project only, pinned TF) - run: | - echo "Restoring test project for framework ${{ matrix.tfm }}" - dotnet restore ./cas-dotnet-sdk-tests/cas-dotnet-sdk-tests.csproj -p:TargetFramework=${{ matrix.tfm }} - - - name: Build (override framework) - run: | - echo "Building solution for framework ${{ matrix.tfm }}" - dotnet build ./cas-dotnet-sdk.sln -c Release --no-restore -f ${{ matrix.tfm }} - - - name: Run tests (override framework) - run: | - echo "Running tests for framework ${{ matrix.tfm }}" - dotnet test ./cas-dotnet-sdk-tests/cas-dotnet-sdk-tests.csproj -c Release --no-build -f ${{ matrix.tfm }} --logger "trx" - - - name: Upload test results - if: always() - uses: actions/upload-artifact@v4 - with: - name: TestResults-dotnet-${{ matrix.dotnet-version }} - path: | - **/TestResults/*.trx - **/*.trx \ No newline at end of file diff --git a/.github/workflows/pr-tests-linux.yml b/.github/workflows/pr-tests-linux.yml index c85a40b..e9e6c31 100644 --- a/.github/workflows/pr-tests-linux.yml +++ b/.github/workflows/pr-tests-linux.yml @@ -10,13 +10,13 @@ jobs: strategy: matrix: include: - - dotnet-version: 6.0.428 + - dotnet-version: 6.0.x tfm: net6.0 - - dotnet-version: 7.0.413 + - dotnet-version: 7.0.x tfm: net7.0 - - dotnet-version: 8.0.414 + - dotnet-version: 8.0.x tfm: net8.0 - - dotnet-version: 9.0.100 + - dotnet-version: 9.0.x` tfm: net9.0 steps: - name: Checkout repository diff --git a/.github/workflows/pr-tests-windows.yml b/.github/workflows/pr-tests-windows.yml index f63b424..89973bf 100644 --- a/.github/workflows/pr-tests-windows.yml +++ b/.github/workflows/pr-tests-windows.yml @@ -1,4 +1,4 @@ -name: PR Tests - Windows +name: PR Tests - Linux on: pull_request: @@ -10,13 +10,13 @@ jobs: strategy: matrix: include: - - dotnet-version: 6.0.428 + - dotnet-version: 6.0.x tfm: net6.0 - - dotnet-version: 7.0.413 + - dotnet-version: 7.0.x tfm: net7.0 - - dotnet-version: 8.0.414 + - dotnet-version: 8.0.x tfm: net8.0 - - dotnet-version: 9.0.100 + - dotnet-version: 9.0.x` tfm: net9.0 steps: - name: Checkout repository @@ -30,7 +30,7 @@ jobs: - name: Cache NuGet packages uses: actions/cache@v4 with: - path: "%USERPROFILE%\\.nuget\\packages" + path: ~/.nuget/packages key: nuget-packages-${{ runner.os }}-${{ hashFiles('**/project.assets.json') }} restore-keys: | nuget-packages-${{ runner.os }}- From a75ad45003fe4e731914ec97952cd13ee45cb9c2 Mon Sep 17 00:00:00 2001 From: WingZer0o Date: Fri, 12 Sep 2025 23:53:47 -0400 Subject: [PATCH 07/11] welcome --- .github/workflows/pr-tests-linux.yml | 8 ++++---- .github/workflows/pr-tests-windows.yml | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pr-tests-linux.yml b/.github/workflows/pr-tests-linux.yml index e9e6c31..b5d0618 100644 --- a/.github/workflows/pr-tests-linux.yml +++ b/.github/workflows/pr-tests-linux.yml @@ -10,13 +10,13 @@ jobs: strategy: matrix: include: - - dotnet-version: 6.0.x + - dotnet-version: 6.0 tfm: net6.0 - - dotnet-version: 7.0.x + - dotnet-version: 7.0 tfm: net7.0 - - dotnet-version: 8.0.x + - dotnet-version: 8.0 tfm: net8.0 - - dotnet-version: 9.0.x` + - dotnet-version: 9.0 tfm: net9.0 steps: - name: Checkout repository diff --git a/.github/workflows/pr-tests-windows.yml b/.github/workflows/pr-tests-windows.yml index 89973bf..63e5000 100644 --- a/.github/workflows/pr-tests-windows.yml +++ b/.github/workflows/pr-tests-windows.yml @@ -1,4 +1,4 @@ -name: PR Tests - Linux +name: PR Tests - Windows on: pull_request: @@ -10,13 +10,13 @@ jobs: strategy: matrix: include: - - dotnet-version: 6.0.x + - dotnet-version: 6.0 tfm: net6.0 - - dotnet-version: 7.0.x + - dotnet-version: 7.0 tfm: net7.0 - - dotnet-version: 8.0.x + - dotnet-version: 8.0 tfm: net8.0 - - dotnet-version: 9.0.x` + - dotnet-version: 9.0` tfm: net9.0 steps: - name: Checkout repository From 72f57c554712db7038a2153ff346652650080877 Mon Sep 17 00:00:00 2001 From: WingZer0o Date: Fri, 12 Sep 2025 23:57:30 -0400 Subject: [PATCH 08/11] yup --- .github/workflows/pr-tests-linux.yml | 12 ++++-------- .github/workflows/pr-tests-windows.yml | 18 +++++++----------- 2 files changed, 11 insertions(+), 19 deletions(-) diff --git a/.github/workflows/pr-tests-linux.yml b/.github/workflows/pr-tests-linux.yml index b5d0618..c2ace1d 100644 --- a/.github/workflows/pr-tests-linux.yml +++ b/.github/workflows/pr-tests-linux.yml @@ -18,6 +18,7 @@ jobs: tfm: net8.0 - dotnet-version: 9.0 tfm: net9.0 + steps: - name: Checkout repository uses: actions/checkout@v4 @@ -27,15 +28,10 @@ jobs: with: dotnet-version: ${{ matrix.dotnet-version }} - - name: Cache NuGet packages - uses: actions/cache@v4 - with: - path: ~/.nuget/packages - key: nuget-packages-${{ runner.os }}-${{ hashFiles('**/project.assets.json') }} - restore-keys: | - nuget-packages-${{ runner.os }}- + - name: Restore dependencies + run: dotnet restore - name: Run tests (override framework) run: | echo "Running tests for framework ${{ matrix.tfm }}" - dotnet test ./cas-dotnet-sdk-tests/cas-dotnet-sdk-tests.csproj -c Release --logger "trx" \ No newline at end of file + dotnet test ./cas-dotnet-sdk-tests/cas-dotnet-sdk-tests.csproj -c Release -f ${{ matrix.tfm }} --logger "trx" \ No newline at end of file diff --git a/.github/workflows/pr-tests-windows.yml b/.github/workflows/pr-tests-windows.yml index 63e5000..c2ace1d 100644 --- a/.github/workflows/pr-tests-windows.yml +++ b/.github/workflows/pr-tests-windows.yml @@ -1,4 +1,4 @@ -name: PR Tests - Windows +name: PR Tests - Linux on: pull_request: @@ -6,7 +6,7 @@ on: jobs: build: - runs-on: windows-latest + runs-on: ubuntu-latest strategy: matrix: include: @@ -16,8 +16,9 @@ jobs: tfm: net7.0 - dotnet-version: 8.0 tfm: net8.0 - - dotnet-version: 9.0` + - dotnet-version: 9.0 tfm: net9.0 + steps: - name: Checkout repository uses: actions/checkout@v4 @@ -27,15 +28,10 @@ jobs: with: dotnet-version: ${{ matrix.dotnet-version }} - - name: Cache NuGet packages - uses: actions/cache@v4 - with: - path: ~/.nuget/packages - key: nuget-packages-${{ runner.os }}-${{ hashFiles('**/project.assets.json') }} - restore-keys: | - nuget-packages-${{ runner.os }}- + - name: Restore dependencies + run: dotnet restore - name: Run tests (override framework) run: | echo "Running tests for framework ${{ matrix.tfm }}" - dotnet test ./cas-dotnet-sdk-tests/cas-dotnet-sdk-tests.csproj -c Release --logger "trx" \ No newline at end of file + dotnet test ./cas-dotnet-sdk-tests/cas-dotnet-sdk-tests.csproj -c Release -f ${{ matrix.tfm }} --logger "trx" \ No newline at end of file From 014ee0397709641bd1051b5d10460b99ff95b51b Mon Sep 17 00:00:00 2001 From: WingZer0o Date: Fri, 12 Sep 2025 23:59:23 -0400 Subject: [PATCH 09/11] okay --- .github/workflows/pr-tests-windows.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-tests-windows.yml b/.github/workflows/pr-tests-windows.yml index c2ace1d..7a1d88f 100644 --- a/.github/workflows/pr-tests-windows.yml +++ b/.github/workflows/pr-tests-windows.yml @@ -1,4 +1,4 @@ -name: PR Tests - Linux +name: PR Tests - Windows on: pull_request: @@ -6,7 +6,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: windows-latest strategy: matrix: include: From ac463547135fd2944718633b8db79195e2e53388 Mon Sep 17 00:00:00 2001 From: WingZer0o Date: Sat, 13 Sep 2025 00:00:04 -0400 Subject: [PATCH 10/11] nope --- .github/workflows/pr-tests-linux.yml | 3 --- .github/workflows/pr-tests-windows.yml | 3 --- 2 files changed, 6 deletions(-) diff --git a/.github/workflows/pr-tests-linux.yml b/.github/workflows/pr-tests-linux.yml index c2ace1d..83d366d 100644 --- a/.github/workflows/pr-tests-linux.yml +++ b/.github/workflows/pr-tests-linux.yml @@ -28,9 +28,6 @@ jobs: with: dotnet-version: ${{ matrix.dotnet-version }} - - name: Restore dependencies - run: dotnet restore - - name: Run tests (override framework) run: | echo "Running tests for framework ${{ matrix.tfm }}" diff --git a/.github/workflows/pr-tests-windows.yml b/.github/workflows/pr-tests-windows.yml index 7a1d88f..ba32bb9 100644 --- a/.github/workflows/pr-tests-windows.yml +++ b/.github/workflows/pr-tests-windows.yml @@ -28,9 +28,6 @@ jobs: with: dotnet-version: ${{ matrix.dotnet-version }} - - name: Restore dependencies - run: dotnet restore - - name: Run tests (override framework) run: | echo "Running tests for framework ${{ matrix.tfm }}" From affaefe029c299c222bd80e1c1d0c4c477d20f49 Mon Sep 17 00:00:00 2001 From: Mike Mulchrone Date: Sat, 13 Sep 2025 12:00:42 -0400 Subject: [PATCH 11/11] testing --- .github/workflows/pr-tests-linux.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-tests-linux.yml b/.github/workflows/pr-tests-linux.yml index 83d366d..bc37306 100644 --- a/.github/workflows/pr-tests-linux.yml +++ b/.github/workflows/pr-tests-linux.yml @@ -26,7 +26,11 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: ${{ matrix.dotnet-version }} + dotnet-version: | + 6.0.x + 7.0.x + 8.0.x + 9.0.x - name: Run tests (override framework) run: |