Merge pull request #6 from mlemanczyk/codex/optymalizuj-klase-recyclablestack-dla-wydajnosci

Document test workflow update
This commit is contained in:
Marek Lemańczyk authored and GitHub committed 2025-07-13 22:30:28 +02:00
commit 93261808aa
4 files changed
+15 -21

No files matched your search

+11 -11
View File
@@ -15,14 +15,14 @@ jobs:
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@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --framework net8.0 --verbosity normal
+1 -1
View File
@@ -2,7 +2,7 @@
This repository hosts various libraries distributed as NuGet packages. Keep these links up to date so contributors and tools can easily locate them.
Only the .NET SDK **8.0** is available in the execution environment. Use this version when building or running tests.
Only the .NET SDK **8.0** is available in the execution environment. Use this version when building or running tests. When invoking `dotnet test`, do **not** pass `--no-build` because that leads to missing assemblies. Instead, specify the `--framework` argument matching the SDK available in the environment (currently `net8.0`).
All `*.csproj` files should enable nullable reference types with `<Nullable>enable</Nullable>`.
Indent code using four spaces or a single tab per level. Place one blank line after each closing curly brace of a code block, except when several closing braces appear sequentially. Always use braces for `if` and `else` bodies.
@@ -43,7 +43,6 @@ namespace Recyclable.Collections
}
private RecyclableArrayPoolChunk<T> _current;
private RecyclableArrayPoolChunk<T> _bottom;
private bool _disposed;
private long _capacity;
private long _count;
@@ -61,7 +60,6 @@ namespace Recyclable.Collections
}
_current = RentChunk(initialCapacity, null);
_bottom = _current;
_capacity = initialCapacity;
_count = 0;
}
@@ -128,7 +126,6 @@ namespace Recyclable.Collections
_capacity = _current.Buffer.Length;
_current.Index = 0;
_count = 0;
_bottom = _current;
}
public Enumerator GetEnumerator() => new(this);
@@ -160,10 +157,6 @@ namespace Recyclable.Collections
_current = toReturn.Previous!;
_current.Next = null;
_capacity -= toReturn.Buffer.Length;
if (_current.Previous == null)
{
_bottom = _current;
}
ReturnChunk(toReturn);
}
@@ -1,8 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<EnforceExtendedAnalyzerRules>True</EnforceExtendedAnalyzerRules>
<TargetFrameworks>net8.0;net7.0;net6.0</TargetFrameworks>
<Nullable>enable</Nullable>
<EnforceExtendedAnalyzerRules>True</EnforceExtendedAnalyzerRules>
</PropertyGroup>
<ItemGroup>