File tree Expand file tree Collapse file tree 2 files changed +22
-3
lines changed
src/ByteAether.Ulid.Tests Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 2121 - name : Checkout code
2222 uses : actions/checkout@v6
2323
24+ - name : Get Short SHA
25+ id : vars
26+ run : echo "sha_short=$(echo ${{ github.sha }} | cut -c1-7)" >> $GITHUB_OUTPUT
27+
2428 - name : Setup .NET
2529 uses : actions/setup-dotnet@v5
2630 with :
@@ -38,12 +42,27 @@ jobs:
3842 - name : Build
3943 run : dotnet build --no-restore --configuration Release src/ByteAether.Ulid.sln
4044
45+ - name : Upload DLLs
46+ uses : actions/upload-artifact@v6
47+ with :
48+ name : dlls-${{ steps.vars.outputs.sha_short }}
49+ path : ./**/ByteAether.Ulid/bin/**/*.dll
50+
4151 - name : Run tests
4252 continue-on-error : true
4353 run : dotnet test --no-build --verbosity normal --logger "trx" --configuration Release src/ByteAether.Ulid.sln
4454
4555 - name : Upload test results
4656 uses : actions/upload-artifact@v6
4757 with :
48- name : test-results
58+ name : test-results-${{ steps.vars.outputs.sha_short }}
4959 path : ./**/TestResults/**/*.trx
60+
61+ - name : Pack
62+ run : dotnet pack --configuration Release /p:ContinuousIntegrationBuild=true /p:PackageVersion=0.0.0-ci-${{ steps.vars.outputs.sha_short }} /p:PackageReleaseNotes="CI Build ${{ steps.vars.outputs.sha_short }}" --output ./output src/ByteAether.Ulid/ByteAether.Ulid.csproj
63+
64+ - name : Upload NuGet package
65+ uses : actions/upload-artifact@v6
66+ with :
67+ name : nugets-${{ steps.vars.outputs.sha_short }}
68+ path : ./output/*.nupkg
Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ public class UlidNewTests
1717 /// <summary>
1818 /// A controllable random provider for testing purposes. It returns pre-configured byte sequences.
1919 /// </summary>
20- private class ControllableRandomProvider ( params byte [ ] [ ] ByteSequences ) : IRandomProvider
20+ private class ControllableRandomProvider ( params byte [ ] [ ] byteSequences ) : IRandomProvider
2121 {
22- private readonly Queue < byte [ ] > _byteSequences = new ( ByteSequences ) ;
22+ private readonly Queue < byte [ ] > _byteSequences = new ( byteSequences ) ;
2323
2424 public void GetBytes ( Span < byte > buffer )
2525 {
You can’t perform that action at this time.
0 commit comments