From 3e6e4b0bfaa5fad3801c737d16d06ee3759708d2 Mon Sep 17 00:00:00 2001 From: Justin Lampe Date: Tue, 11 Nov 2025 16:08:05 +0100 Subject: [PATCH 1/2] Change .NET setup action and specify runtime versions Updated .NET setup action to custom version with runtime support. --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7a0c247..8722e90 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,12 @@ jobs: uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v4 + uses: xC0dex/setup-dotnet@feat/dotnet-runtime-support + with: + dotnet-version: 10.x + dotnet-runtime: | + 8.x + 9.x - name: Restore dependencies run: dotnet restore From d6bb7eb0f8a6fcf00777c9e472691b0c86bec5b5 Mon Sep 17 00:00:00 2001 From: Justin Lampe Date: Tue, 11 Nov 2025 16:11:05 +0100 Subject: [PATCH 2/2] Simplify CI workflow by removing tests and analysis Removed testing and analysis steps from CI workflow. --- .github/workflows/ci.yml | 60 ++++++---------------------------------- 1 file changed, 9 insertions(+), 51 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8722e90..0b51fb3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,62 +29,20 @@ jobs: with: dotnet-version: 10.x dotnet-runtime: | + 6.0.0 + 7.x 8.x - 9.x + 9.x + + - name: List SDKs and Runtimes + run: | + dotnet --list-sdks + dotnet --list-runtimes - name: Restore dependencies run: dotnet restore - name: Build solution run: dotnet build -c Release --no-restore - - - name: Test solution - run: dotnet test -c Release --no-build --results-directory "test-results" --collect "XPlat Code Coverage;Format=opencover" - - - name: Upload coverage report - uses: actions/upload-artifact@v4 - with: - name: coverage-report - path: test-results - - # - name: Upload results to Codecov - # uses: codecov/codecov-action@v4 - # with: - # token: ${{ secrets.CODECOV_TOKEN }} - analyze: - runs-on: ubuntu-latest - if: github.event.repository.fork == false - needs: - - build-test - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Setup .NET - uses: actions/setup-dotnet@v4 - - - name: Install sonar scanner - run: dotnet tool install -g dotnet-sonarscanner - - - name: Restore dependencies - run: dotnet restore - - - name: Download coverage report - uses: actions/download-artifact@v4 - with: - name: coverage-report - path: test-results - - - name: Analyze solution - run: | - dotnet sonarscanner begin /k:"${{ env.PROJECT_KEY }}" /o:"${{ env.ORGANIZATION }}" /d:sonar.token="${{ env.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.dotnet.excludeTestProjects=true /d:sonar.scanner.scanAll=true /d:sonar.cs.opencover.reportsPaths="**/test-results/**/coverage.opencover.xml" - dotnet build -c Release --no-restore --no-incremental - dotnet sonarscanner end /d:sonar.token="${{ env.SONAR_TOKEN }}" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - PROJECT_KEY: xC0dex_APIWeaver - ORGANIZATION: apiweaver +