From 83c3bdc1daedb198092380884aada1de124ba06f Mon Sep 17 00:00:00 2001 From: aaadrian Date: Fri, 13 Mar 2026 17:05:45 -0700 Subject: [PATCH 1/3] net10.0 upgrade --- Alligator.Benchmark/Alligator.Benchmark.csproj | 4 ++-- Alligator.Demo/Alligator.Demo.csproj | 4 ++-- Alligator.SixMaking/Alligator.SixMaking.csproj | 4 ++-- Alligator.Solver/Alligator.Solver.csproj | 4 ++-- Alligator.Test/Alligator.Test.csproj | 15 +++++++++------ Alligator.TicTacToe/Alligator.TicTacToe.csproj | 4 ++-- 6 files changed, 19 insertions(+), 16 deletions(-) diff --git a/Alligator.Benchmark/Alligator.Benchmark.csproj b/Alligator.Benchmark/Alligator.Benchmark.csproj index ea0c08a..c74effb 100644 --- a/Alligator.Benchmark/Alligator.Benchmark.csproj +++ b/Alligator.Benchmark/Alligator.Benchmark.csproj @@ -1,8 +1,8 @@ - + Exe - net6.0 + net10.0 enable enable diff --git a/Alligator.Demo/Alligator.Demo.csproj b/Alligator.Demo/Alligator.Demo.csproj index 17cad9b..71357ef 100644 --- a/Alligator.Demo/Alligator.Demo.csproj +++ b/Alligator.Demo/Alligator.Demo.csproj @@ -1,8 +1,8 @@ - + Exe - net6.0 + net10.0 enable enable diff --git a/Alligator.SixMaking/Alligator.SixMaking.csproj b/Alligator.SixMaking/Alligator.SixMaking.csproj index 94d7d05..49a353c 100644 --- a/Alligator.SixMaking/Alligator.SixMaking.csproj +++ b/Alligator.SixMaking/Alligator.SixMaking.csproj @@ -1,8 +1,8 @@ - + Exe - net6.0 + net10.0 enable enable diff --git a/Alligator.Solver/Alligator.Solver.csproj b/Alligator.Solver/Alligator.Solver.csproj index 132c02c..b760144 100644 --- a/Alligator.Solver/Alligator.Solver.csproj +++ b/Alligator.Solver/Alligator.Solver.csproj @@ -1,7 +1,7 @@ - + - net6.0 + net10.0 enable enable diff --git a/Alligator.Test/Alligator.Test.csproj b/Alligator.Test/Alligator.Test.csproj index 84534d3..c1d895d 100644 --- a/Alligator.Test/Alligator.Test.csproj +++ b/Alligator.Test/Alligator.Test.csproj @@ -1,7 +1,7 @@ - + - net6.0 + net10.0 enable enable @@ -9,10 +9,13 @@ - - - - + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/Alligator.TicTacToe/Alligator.TicTacToe.csproj b/Alligator.TicTacToe/Alligator.TicTacToe.csproj index 3650f33..f242054 100644 --- a/Alligator.TicTacToe/Alligator.TicTacToe.csproj +++ b/Alligator.TicTacToe/Alligator.TicTacToe.csproj @@ -1,7 +1,7 @@ - + - net6.0 + net10.0 enable enable From bf8a0dc5b3313e9ed547c45570f8b3ac7783b0fd Mon Sep 17 00:00:00 2001 From: Adrian Date: Fri, 13 Mar 2026 17:13:51 -0700 Subject: [PATCH 2/3] Update sonarcloud.yml --- .github/workflows/sonarcloud.yml | 65 ++++++++------------------------ 1 file changed, 16 insertions(+), 49 deletions(-) diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index d72c2df..0a6b209 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -1,68 +1,35 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - -# This workflow helps you trigger a SonarCloud analysis of your code and populates -# GitHub Code Scanning alerts with the vulnerabilities found. -# Free for open source project. - -# 1. Login to SonarCloud.io using your GitHub account - -# 2. Import your project on SonarCloud -# * Add your GitHub organization first, then add your repository as a new project. -# * Please note that many languages are eligible for automatic analysis, -# which means that the analysis will start automatically without the need to set up GitHub Actions. -# * This behavior can be changed in Administration > Analysis Method. -# -# 3. Follow the SonarCloud in-product tutorial -# * a. Copy/paste the Project Key and the Organization Key into the args parameter below -# (You'll find this information in SonarCloud. Click on "Information" at the bottom left) -# -# * b. Generate a new token and add it to your Github repository's secrets using the name SONAR_TOKEN -# (On SonarCloud, click on your avatar on top-right > My account > Security -# or go directly to https://sonarcloud.io/account/security/) - -# Feel free to take a look at our documentation (https://docs.sonarcloud.io/getting-started/github/) -# or reach out to our community forum if you need some help (https://community.sonarsource.com/c/help/sc/9) - name: SonarCloud analysis on: push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] + branches: ["main"] workflow_dispatch: permissions: - pull-requests: read # allows SonarCloud to decorate PRs with analysis results + pull-requests: read jobs: Analysis: runs-on: ubuntu-latest steps: - - name: Analyze with SonarCloud + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 17 - # You can pin the exact commit or the version. - # uses: SonarSource/sonarcloud-github-action@de2e56b42aa84d0b1c5b622644ac17e505c9a049 - uses: SonarSource/sonarcloud-github-action@de2e56b42aa84d0b1c5b622644ac17e505c9a049 + - name: SonarCloud Scan + uses: SonarSource/sonarcloud-github-action@v2 env: - GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }} # Needed to get PR information - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # Generate a token on Sonarcloud.io, add it to the secrets of this repo with the name SONAR_TOKEN (Settings > Secrets > Actions > add new repository secret) + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} with: - # Additional arguments for the sonarcloud scanner - args: - # Unique keys of your project and organization. You can find them in SonarCloud > Information (bottom-left menu) - # mandatory + args: > -Dsonar.projectKey=alligator -Dsonar.organization=boraaros-github - # Comma-separated paths to directories containing main source files. - #-Dsonar.sources= # optional, default is project base directory - # When you need the analysis to take place in a directory other than the one from which it was launched - #-Dsonar.projectBaseDir= # optional, default is . - # Comma-separated paths to directories containing test source files. - #-Dsonar.tests= # optional. For more info about Code Coverage, please refer to https://docs.sonarcloud.io/enriching/test-coverage/overview/ - # Adds more detail to both client and server-side analysis logs, activating DEBUG mode for the scanner, and adding client-side environment variables and system properties to the server-side log of analysis report processing. - #-Dsonar.verbose= # optional, default is false From d1cd0e6072537fb33cc2421e50e6e99fcf3044cb Mon Sep 17 00:00:00 2001 From: Adrian Date: Fri, 13 Mar 2026 17:14:54 -0700 Subject: [PATCH 3/3] Update build.yml --- .github/workflows/build.yml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1496817..33de8f8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,28 +1,28 @@ -# This workflow will build a .NET project -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net - name: .NET build on: push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] + branches: ["main"] jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Setup .NET - uses: actions/setup-dotnet@v3 - with: - dotnet-version: 6.0.x - - name: Restore dependencies - run: dotnet restore - - name: Build - run: dotnet build --no-restore - - name: Test - run: dotnet test --no-build --verbosity normal + - uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 10.0.x + + - name: Restore dependencies + run: dotnet restore + + - name: Build + run: dotnet build --no-restore --configuration Release + + - name: Test + run: dotnet test --no-build --configuration Release --verbosity normal