Skip to content

Commit 03fae9c

Browse files
committed
Minor cleanup and uncomment release steps in publish pipeline
1 parent 0ae490b commit 03fae9c

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ jobs:
4444
with:
4545
name: release-pack-nupkg
4646
path: artifacts
47-
#- name: Run nuget package validation
48-
# run: |
49-
# foreach($file in (Get-ChildItem "./artifacts/" -Recurse -Include *.nupkg)) {
50-
# dotnet meziantou.validate-nuget-package $file
51-
# }
47+
- name: Run nuget package validation
48+
run: |
49+
foreach($file in (Get-ChildItem "./artifacts/" -Recurse -Include *.nupkg)) {
50+
dotnet meziantou.validate-nuget-package $file
51+
}
5252
5353
publish-to-nuget-and-gh-release:
5454
# Publish only when creating a github release
@@ -72,11 +72,11 @@ jobs:
7272
id: login
7373
with:
7474
user: ${{ secrets.NUGET_USER }}
75-
#- name: Upload nupkg to nuget
76-
# run: |
77-
# foreach($file in (Get-ChildItem "./artifacts/" -Recurse -Include *.nupkg)) {
78-
# dotnet nuget push $file --api-key "${{ steps.login.outputs.NUGET_API_KEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
79-
# }
75+
- name: Upload nupkg to nuget
76+
run: |
77+
foreach($file in (Get-ChildItem "./artifacts/" -Recurse -Include *.nupkg)) {
78+
dotnet nuget push $file --api-key "${{ steps.login.outputs.NUGET_API_KEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
79+
}
8080
- name: Upload nupkg to github release
8181
run: |
8282
foreach($file in (Get-ChildItem "./artifacts/" -Recurse -Include *.nupkg)) {

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ var firstPage = KeySetPaginator.ApplyPagination(
6868

6969
For Offset pagination, use `OffsetPaginator` instead.
7070

71-
### Retrieving the cursor pointing to the next page
71+
### Retrieving the cursor pointing to the next page as an opaque string
7272
Each returned page-object includes a helper that exposes the cursor used to retrieve the next page.
7373

7474
#### KeySet pagination

src/Jameak.CursorPagination.SourceGenerator/Jameak.CursorPagination.SourceGenerator.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<PrivateAssets>all</PrivateAssets>
2424
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2525
</PackageReference>
26-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.11.0" />
26+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.11.0" PrivateAssets="all"/>
2727
</ItemGroup>
2828

2929
<ItemGroup>

test/Jameak.CursorPagination.SourceGenerator.IntegrationTests/KeySetCursorSerializationTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using CsCheck;
1+
using CsCheck;
22
using Jameak.CursorPagination.SourceGenerator.IntegrationTests.InputClasses;
33
using Jameak.CursorPagination.SourceGenerator.IntegrationTests.PartialStrategies;
44

@@ -24,7 +24,7 @@ public void VerifyCursorSerializationManyTypes()
2424
LongProp = -7,
2525
SbyteProp = 8,
2626
ShortProp = 9,
27-
StringProp = "abc",
27+
StringProp = "abc😊",
2828
UintProp = 10,
2929
UlongProp = 11,
3030
UshortProp = 12,
@@ -38,7 +38,7 @@ public void VerifyCursorSerializationManyTypes()
3838
var deserializedCursor = strategy.CursorFromString(cursorString);
3939

4040
// Assert
41-
Assert.Equal("eyIwIjpmYWxzZSwiMSI6MiwiMiI6IjYzODcxMzgzODQ1MDA2MDAwMDpVVEMiLCIzIjoiMjAyNC0wMS0wMlQwMzowNDowNS4wMDYrMDA6MDAiLCI0IjozLCI1Ijo0LjEsIjYiOjUuMiwiNyI6ImFhYWFhYWFhLWFhYWEtYWFhYS1hYWFhLWFhYWFhYWFhYWFhYSIsIjgiOi02LCI5IjotNywiMTAiOjgsIjExIjo5LCIxMiI6ImFiYyIsIjEzIjoxMiwiMTQiOjEwLCIxNSI6MTEsIjE2IjpudWxsfQ",
41+
Assert.Equal("eyIwIjpmYWxzZSwiMSI6MiwiMiI6IjYzODcxMzgzODQ1MDA2MDAwMDpVVEMiLCIzIjoiMjAyNC0wMS0wMlQwMzowNDowNS4wMDYrMDA6MDAiLCI0IjozLCI1Ijo0LjEsIjYiOjUuMiwiNyI6ImFhYWFhYWFhLWFhYWEtYWFhYS1hYWFhLWFhYWFhYWFhYWFhYSIsIjgiOi02LCI5IjotNywiMTAiOjgsIjExIjo5LCIxMiI6ImFiY1x1RDgzRFx1REUwQSIsIjEzIjoxMiwiMTQiOjEwLCIxNSI6MTEsIjE2IjpudWxsfQ",
4242
cursorString);
4343
Assert.Equal(cursor, deserializedCursor);
4444
}

0 commit comments

Comments
 (0)