Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various Tooling Updates #16

Merged
merged 6 commits into from
Feb 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Build

env:
DOTNET_NOLOGO: 1
TreatWarningsAsErrors: true

on:
push:
Expand All @@ -18,20 +19,20 @@ jobs:
env:
EntityFrameworkCoreVersion: ${{matrix.efcore}}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore /p:TreatWarningsAsErrors=true
run: dotnet build --configuration Release --no-restore
- name: Run Tests
run: dotnet test --configuration Release --no-build

nupkg:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
- name: Generate NuGet Packages
run: dotnet pack --configuration Release --output nupkg
- uses: actions/upload-artifact@v4
Expand Down
5 changes: 4 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<RepositoryUrl>https://github.com/polyadic/funcky-efcore</RepositoryUrl>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Messerli.CodeStyle" PrivateAssets="all" />
<PackageReference Include="Polyadic.CodeStyle" PrivateAssets="all" />
<PackageReference Include="Funcky.Analyzers" PrivateAssets="all" />
</ItemGroup>
<PropertyGroup Label="Code Style">
Expand All @@ -19,4 +19,7 @@
<ContinuousIntegrationBuild Condition="'$(GITHUB_ACTIONS)' == 'true'">true</ContinuousIntegrationBuild>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
</PropertyGroup>
<PropertyGroup>
<ArtifactsPath>$(MSBuildThisFileDirectory)artifacts</ArtifactsPath>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</ItemGroup>
<ItemGroup Label="Build Dependencies">
<PackageVersion Include="Funcky.Analyzers" Version="1.4.0" />
<PackageVersion Include="Messerli.CodeStyle" Version="2.3.1" />
<PackageVersion Include="Polyadic.CodeStyle" Version="1.0.0" />
<PackageVersion Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="3.3.4" />
</ItemGroup>
<ItemGroup Label="Test Dependencies">
Expand Down
2 changes: 2 additions & 0 deletions Funcky.EntityFrameworkCore/Funcky.EntityFrameworkCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<Description>Interoperability between Funcky and EF Core</Description>
<PackageTags>Functional Monad EFCore EntityFramework</PackageTags>
<Version>1.3.0</Version>
<PackageValidationBaselineVersion>1.0.0</PackageValidationBaselineVersion>
<PackageReadmeFile>readme.md</PackageReadmeFile>
</PropertyGroup>
<PropertyGroup Label="Symbols">
Expand All @@ -18,6 +19,7 @@
<PropertyGroup Label="Analyzers">
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<AnalysisModeReliability>All</AnalysisModeReliability>
<EnablePackageValidation>true</EnablePackageValidation>
bash marked this conversation as resolved.
Show resolved Hide resolved
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Funcky" />
Expand Down
7 changes: 7 additions & 0 deletions Funcky.EntityFrameworkCore/PublicAPI.Shipped.txt
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
#nullable enable
Funcky.Extensions.EntityFrameworkQueryableExtensions
static Funcky.Extensions.EntityFrameworkQueryableExtensions.FirstOrNoneAsync<TSource>(this System.Linq.IQueryable<TSource>! source, System.Linq.Expressions.Expression<System.Func<TSource, bool>!>! predicate, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task<Funcky.Monads.Option<TSource>>!
static Funcky.Extensions.EntityFrameworkQueryableExtensions.FirstOrNoneAsync<TSource>(this System.Linq.IQueryable<TSource>! source, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task<Funcky.Monads.Option<TSource>>!
static Funcky.Extensions.EntityFrameworkQueryableExtensions.LastOrNoneAsync<TSource>(this System.Linq.IQueryable<TSource>! source, System.Linq.Expressions.Expression<System.Func<TSource, bool>!>! predicate, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task<Funcky.Monads.Option<TSource>>!
static Funcky.Extensions.EntityFrameworkQueryableExtensions.LastOrNoneAsync<TSource>(this System.Linq.IQueryable<TSource>! source, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task<Funcky.Monads.Option<TSource>>!
static Funcky.Extensions.EntityFrameworkQueryableExtensions.SingleOrNoneAsync<TSource>(this System.Linq.IQueryable<TSource>! source, System.Linq.Expressions.Expression<System.Func<TSource, bool>!>! predicate, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task<Funcky.Monads.Option<TSource>>!
static Funcky.Extensions.EntityFrameworkQueryableExtensions.SingleOrNoneAsync<TSource>(this System.Linq.IQueryable<TSource>! source, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task<Funcky.Monads.Option<TSource>>!
7 changes: 0 additions & 7 deletions Funcky.EntityFrameworkCore/PublicAPI.Unshipped.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
#nullable enable
Funcky.Extensions.EntityFrameworkQueryableExtensions
static Funcky.Extensions.EntityFrameworkQueryableExtensions.FirstOrNoneAsync<TSource>(this System.Linq.IQueryable<TSource>! source, System.Linq.Expressions.Expression<System.Func<TSource, bool>!>! predicate, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task<Funcky.Monads.Option<TSource>>!
static Funcky.Extensions.EntityFrameworkQueryableExtensions.FirstOrNoneAsync<TSource>(this System.Linq.IQueryable<TSource>! source, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task<Funcky.Monads.Option<TSource>>!
static Funcky.Extensions.EntityFrameworkQueryableExtensions.LastOrNoneAsync<TSource>(this System.Linq.IQueryable<TSource>! source, System.Linq.Expressions.Expression<System.Func<TSource, bool>!>! predicate, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task<Funcky.Monads.Option<TSource>>!
static Funcky.Extensions.EntityFrameworkQueryableExtensions.LastOrNoneAsync<TSource>(this System.Linq.IQueryable<TSource>! source, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task<Funcky.Monads.Option<TSource>>!
static Funcky.Extensions.EntityFrameworkQueryableExtensions.SingleOrNoneAsync<TSource>(this System.Linq.IQueryable<TSource>! source, System.Linq.Expressions.Expression<System.Func<TSource, bool>!>! predicate, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task<Funcky.Monads.Option<TSource>>!
static Funcky.Extensions.EntityFrameworkQueryableExtensions.SingleOrNoneAsync<TSource>(this System.Linq.IQueryable<TSource>! source, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task<Funcky.Monads.Option<TSource>>!
Loading