9 Commits

Author SHA1 Message Date
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
13 changed files with 43 additions and 11 deletions

View File

@@ -11,7 +11,7 @@ jobs:
dotnet-version: [ '8.0.x' ]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:

View File

@@ -24,7 +24,7 @@ jobs:
steps:
- name: Check out the code
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup .NET
@@ -36,7 +36,7 @@ jobs:
run: |
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.
uses: danielpalme/ReportGenerator-GitHub-Action@5.3.8
uses: danielpalme/ReportGenerator-GitHub-Action@v5.5.1
with:
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.

View File

@@ -8,8 +8,8 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.1" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.23" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.9.0" />
</ItemGroup>
</Project>

View File

@@ -10,16 +10,16 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="AutoMapper" Version="13.0.1" />
<PackageReference Include="Microsoft.CodeCoverage" Version="17.11.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.0" />
<PackageReference Include="AutoMapper" Version="16.0.0" />
<PackageReference Include="Microsoft.CodeCoverage" Version="17.14.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</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>
<PrivateAssets>all</PrivateAssets>
</PackageReference>

View File

@@ -12,4 +12,10 @@ public class EmptyAction : IAction
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>
/// <param name="match">le match a modifier avec cette action</param>
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);
}