10 Commits

Author SHA1 Message Date
73ba6d36a2 Update dependency Microsoft.AspNetCore.OpenApi to v10 (#23)
All checks were successful
check main state / build (10.0.x) (push) Successful in 1m44s
Main Build Process / Build & Test (push) Successful in 1m34s
This PR contains the following updates:

| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [Microsoft.AspNetCore.OpenApi](https://asp.net/) ([source](https://github.com/dotnet/dotnet)) | `8.0.23` → `10.0.2` | ![age](https://developer.mend.io/api/mc/badges/age/nuget/Microsoft.AspNetCore.OpenApi/10.0.2?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Microsoft.AspNetCore.OpenApi/8.0.23/10.0.2?slim=true) |

---

### Release Notes

<details>
<summary>dotnet/dotnet (Microsoft.AspNetCore.OpenApi)</summary>

### [`v9.0.7`](https://github.com/dotnet/dotnet/releases/tag/v9.0.7): .NET 9.0.7

You can build .NET 9.0 from the repository by cloning the release tag `v9.0.7` and following the build instructions in the [main README.md](https://github.com/dotnet/dotnet/blob/v9.0.7/README.md#building).

Alternatively, you can build from the sources attached to this release directly.
More information on this process can be found in the [dotnet/dotnet repository](https://github.com/dotnet/dotnet/blob/v9.0.7/README.md#building-from-released-sources).

Attached are PGP signatures for the GitHub generated tarball and zipball. You can find the public key at <https://dot.net/release-key-2023>

### [`v9.0.6`](https://github.com/dotnet/dotnet/releases/tag/v9.0.6): .NET 9.0.6

You can build .NET 9.0 from the repository by cloning the release tag `v9.0.6` and following the build instructions in the [main README.md](https://github.com/dotnet/dotnet/blob/v9.0.6/README.md#building).

Alternatively, you can build from the sources attached to this release directly.
More information on this process can be found in the [dotnet/dotnet repository](https://github.com/dotnet/dotnet/blob/v9.0.6/README.md#building-from-released-sources).

Attached are PGP signatures for the GitHub generated tarball and zipball. You can find the public key at <https://dot.net/release-key-2023>

### [`v9.0.5`](https://github.com/dotnet/dotnet/releases/tag/v9.0.5): .NET 9.0.5

You can build .NET 9.0 from the repository by cloning the release tag `v9.0.5` and following the build instructions in the [main README.md](https://github.com/dotnet/dotnet/blob/v9.0.5/README.md#building).

Alternatively, you can build from the sources attached to this release directly.
More information on this process can be found in the [dotnet/dotnet repository](https://github.com/dotnet/dotnet/blob/v9.0.5/README.md#building-from-released-sources).

Attached are PGP signatures for the GitHub generated tarball and zipball. You can find the public key at <https://dot.net/release-key-2023>

### [`v9.0.4`](https://github.com/dotnet/dotnet/releases/tag/v9.0.4): .NET 9.0.4

You can build .NET 9.0 from the repository by cloning the release tag `v9.0.4` and following the build instructions in the [main README.md](https://github.com/dotnet/dotnet/blob/v9.0.4/README.md#building).

Alternatively, you can build from the sources attached to this release directly.
More information on this process can be found in the [dotnet/dotnet repository](https://github.com/dotnet/dotnet/blob/v9.0.4/README.md#building-from-released-sources).

Attached are PGP signatures for the GitHub generated tarball and zipball. You can find the public key at <https://dot.net/release-key-2023>

### [`v9.0.3`](https://github.com/dotnet/dotnet/releases/tag/v9.0.3): .NET 9.0.3

You can build .NET 9.0 from the repository by cloning the release tag `v9.0.3` and following the build instructions in the [main README.md](https://github.com/dotnet/dotnet/blob/v9.0.3/README.md#building).

Alternatively, you can build from the sources attached to this release directly.
More information on this process can be found in the [dotnet/dotnet repository](https://github.com/dotnet/dotnet/blob/v9.0.3/README.md#building-from-released-sources).

Attached are PGP signatures for the GitHub generated tarball and zipball. You can find the public key at <https://dot.net/release-key-2023>

### [`v9.0.2`](https://github.com/dotnet/dotnet/releases/tag/v9.0.2): .NET 9.0.2

You can build .NET 9.0 from the repository by cloning the release tag `v9.0.2` and following the build instructions in the [main README.md](https://github.com/dotnet/dotnet/blob/v9.0.2/README.md#building).

Alternatively, you can build from the sources attached to this release directly.
More information on this process can be found in the [dotnet/dotnet repository](https://github.com/dotnet/dotnet/blob/v9.0.2/README.md#building-from-released-sources).

Attached are PGP signatures for the GitHub generated tarball and zipball. You can find the public key at <https://dot.net/release-key-2023>

### [`v9.0.1`](https://github.com/dotnet/dotnet/releases/tag/v9.0.1): .NET 9.0.1

You can build .NET 9.0 from the repository by cloning the release tag `v9.0.1` and following the build instructions in the [main README.md](https://github.com/dotnet/dotnet/blob/v9.0.1/README.md#building).

Alternatively, you can build from the sources attached to this release directly.
More information on this process can be found in the [dotnet/dotnet repository](https://github.com/dotnet/dotnet/blob/v9.0.1/README.md#building-from-released-sources).

Attached are PGP signatures for the GitHub generated tarball and zipball. You can find the public key at <https://dot.net/release-key-2023>

### [`v9.0.0`](https://github.com/dotnet/dotnet/releases/tag/v9.0.0): .NET 9.0.0

You can build .NET 9.0 from the repository by cloning the release tag `v9.0.0` and following the build instructions in the [main README.md](https://github.com/dotnet/dotnet/blob/v9.0.0/README.md#building).

Alternatively, you can build from the sources attached to this release directly.
More information on this process can be found in the [dotnet/dotnet repository](https://github.com/dotnet/dotnet/blob/v9.0.0/README.md#building-from-released-sources).

Attached are PGP signatures for the GitHub generated tarball and zipball. You can find the public key at <https://dot.net/release-key-2023>

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4zLjUiLCJ1cGRhdGVkSW5WZXIiOiI0My4zLjUiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=-->

Co-authored-by: Renovate Bot <renovate-bot@gitea.borealian.com>
Reviewed-on: #23
Co-authored-by: mcmuzzle <vezuvan@hotmail.com>
Co-committed-by: mcmuzzle <vezuvan@hotmail.com>
2026-02-05 20:59:39 +00:00
c656206513 [FEAT] mise en place des action pour passer
All checks were successful
Main Build Process / Build & Test (pull_request) Successful in 1m20s
check main state / build (8.0.x) (push) Successful in 1m29s
Main Build Process / Build & Test (push) Successful in 1m21s
2026-02-05 20:13:45 +00:00
Renovate Bot
55750bb5e5 Update actions/checkout action to v6
All checks were successful
check main state / build (8.0.x) (push) Successful in 1m29s
Main Build Process / Build & Test (push) Successful in 1m21s
2026-02-05 17:55:29 +00:00
Renovate Bot
9f9032d9af Update danielpalme/ReportGenerator-GitHub-Action action to v5.5.1
Some checks failed
Main Build Process / Build & Test (pull_request) Successful in 1m24s
Main Build Process / Build & Test (push) Has been cancelled
check main state / build (8.0.x) (push) Has been cancelled
2026-02-05 16:52:28 +00:00
Renovate Bot
effa82a069 Update dependency AutoMapper to v16
All checks were successful
Main Build Process / Build & Test (pull_request) Successful in 1m19s
check main state / build (8.0.x) (push) Successful in 1m49s
Main Build Process / Build & Test (push) Successful in 1m21s
2026-02-05 15:11:55 +00:00
Renovate Bot
25a4d10229 Update vstest monorepo to v17.14.1
All checks were successful
check main state / build (8.0.x) (push) Successful in 1m44s
Main Build Process / Build & Test (push) Successful in 1m33s
2026-02-05 14:50:38 +00:00
Renovate Bot
ebc50f693d Update dependency coverlet.collector to v6.0.4
Some checks failed
Main Build Process / Build & Test (pull_request) Successful in 1m25s
Main Build Process / Build & Test (push) Has been cancelled
check main state / build (8.0.x) (push) Successful in 1m31s
2026-02-05 14:38:08 +00:00
Renovate Bot
396d8070d5 Update dependency Microsoft.AspNetCore.OpenApi to 8.0.23
Some checks failed
Main Build Process / Build & Test (push) Has been cancelled
check main state / build (8.0.x) (push) Successful in 1m33s
Main Build Process / Build & Test (pull_request) Successful in 1m19s
2026-02-05 14:34:32 +00:00
Renovate Bot
6342cc4296 Update xunit-dotnet monorepo
Some checks failed
Main Build Process / Build & Test (push) Has been cancelled
check main state / build (8.0.x) (push) Successful in 1m48s
Main Build Process / Build & Test (pull_request) Successful in 1m45s
2026-02-05 14:32:41 +00:00
Renovate Bot
bf67c69899 Update dependency Swashbuckle.AspNetCore to v6.9.0
Some checks failed
Main Build Process / Build & Test (pull_request) Successful in 1m24s
check main state / build (8.0.x) (push) Successful in 1m45s
Main Build Process / Build & Test (push) Has been cancelled
2026-02-05 11:25:51 +00:00
15 changed files with 50 additions and 18 deletions

View File

@@ -8,14 +8,14 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
dotnet-version: [ '8.0.x' ] dotnet-version: [ '10.0.x' ]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v6
- name: Setup dotnet - name: Setup dotnet
uses: actions/setup-dotnet@v3 uses: actions/setup-dotnet@v3
with: with:
dotnet-version: '8.0.x' dotnet-version: '10.0.x'
- name: Install dependencies - name: Install dependencies
run: dotnet restore ./src/LittleTown.sln run: dotnet restore ./src/LittleTown.sln
- name: Build - name: Build

View File

@@ -24,19 +24,19 @@ jobs:
steps: steps:
- name: Check out the code - name: Check out the code
uses: actions/checkout@v4 uses: actions/checkout@v6
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Setup .NET - name: Setup .NET
uses: actions/setup-dotnet@v4 uses: actions/setup-dotnet@v4
with: with:
dotnet-version: | dotnet-version: |
8.x 10.x
- name: "Restore/Build/Test" - name: "Restore/Build/Test"
run: | run: |
dotnet test ./src/LittleTown.sln --configuration Release --verbosity normal --logger trx --collect:"XPlat Code Coverage" --logger:"trx;LogFileName=test_results.xml" dotnet test ./src/LittleTown.sln --configuration Release --verbosity normal --logger trx --collect:"XPlat Code Coverage" --logger:"trx;LogFileName=test_results.xml"
- name: Combine Coverage Reports # This is because one report is produced per project, and we want one result for all of them. - name: Combine Coverage Reports # This is because one report is produced per project, and we want one result for all of them.
uses: danielpalme/ReportGenerator-GitHub-Action@5.3.8 uses: danielpalme/ReportGenerator-GitHub-Action@v5.5.1
with: with:
reports: "**/*.cobertura.xml" # REQUIRED # The coverage reports that should be parsed (separated by semicolon). Globbing is supported. reports: "**/*.cobertura.xml" # REQUIRED # The coverage reports that should be parsed (separated by semicolon). Globbing is supported.
targetdir: "${{ github.workspace }}" # REQUIRED # The directory where the generated report should be saved. targetdir: "${{ github.workspace }}" # REQUIRED # The directory where the generated report should be saved.

View File

@@ -1,15 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk.Web"> <Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup> <PropertyGroup>
<TargetFramework>net8.0</TargetFramework> <TargetFramework>net10.0</TargetFramework>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<InvariantGlobalization>true</InvariantGlobalization> <InvariantGlobalization>true</InvariantGlobalization>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.1" /> <PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.2" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" /> <PackageReference Include="Swashbuckle.AspNetCore" Version="6.9.0" />
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFramework>net8.0</TargetFramework> <TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
@@ -10,16 +10,16 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="AutoMapper" Version="13.0.1" /> <PackageReference Include="AutoMapper" Version="16.0.0" />
<PackageReference Include="Microsoft.CodeCoverage" Version="17.11.0" /> <PackageReference Include="Microsoft.CodeCoverage" Version="17.14.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.0" /> <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0" /> <PackageReference Include="NUnit3TestAdapter" Version="4.6.0" />
<PackageReference Include="xunit" Version="2.4.2" /> <PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5"> <PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
</PackageReference> </PackageReference>
<PackageReference Include="coverlet.collector" Version="6.0.0"> <PackageReference Include="coverlet.collector" Version="6.0.4">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
</PackageReference> </PackageReference>

View File

@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFramework>net8.0</TargetFramework> <TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<GenerateDocumentationFile>true</GenerateDocumentationFile> <GenerateDocumentationFile>true</GenerateDocumentationFile>

View File

@@ -12,4 +12,10 @@ public class EmptyAction : IAction
match.NextPlayer(); match.NextPlayer();
} }
/// <inheritdoc/>
public bool CanExecute(Match match)
{
return true;
}
} }

View File

@@ -0,0 +1,19 @@
namespace LittleTown.Core.Actions;
/// <summary>
/// Action qui consiste a poser un pion sur le une case du plateau
/// </summary>
public class FieldAction : IAction
{
/// <inheritdoc/>>
public void Execute(Match match)
{
throw new NotImplementedException();
}
/// <inheritdoc/>>
public bool CanExecute(Match match)
{
return true;
}
}

View File

@@ -10,4 +10,11 @@ public interface IAction
/// </summary> /// </summary>
/// <param name="match">le match a modifier avec cette action</param> /// <param name="match">le match a modifier avec cette action</param>
public void Execute(Match match); public void Execute(Match match);
/// <summary>
/// Verifier si cette action peut être effectuée, si elle est légale
/// </summary>
/// <param name="match"></param>
/// <returns></returns>
public bool CanExecute(Match match);
} }

View File

@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFramework>net8.0</TargetFramework> <TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<GenerateDocumentationFile>true</GenerateDocumentationFile> <GenerateDocumentationFile>true</GenerateDocumentationFile>