File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI/CD
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ tags : [ 'v*' ]
7+ pull_request :
8+ branches : [ main ]
9+
10+ jobs :
11+ build :
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - uses : actions/checkout@v3
16+
17+ - name : Setup .NET
18+ uses : actions/setup-dotnet@v3
19+ with :
20+ dotnet-version : 6.0.x
21+
22+ - name : Restore dependencies
23+ run : dotnet restore
24+
25+ - name : Build
26+ run : dotnet build --no-restore --configuration Release
27+
28+ - name : Test
29+ run : dotnet test --no-build --verbosity normal --configuration Release
30+
31+ - name : Pack
32+ if : startsWith(github.ref, 'refs/tags/')
33+ run : dotnet pack src/NetRuleEngine/NetRuleEngine.csproj --configuration Release --no-build --output .
34+
35+ - name : Push to NuGet
36+ if : startsWith(github.ref, 'refs/tags/')
37+ run : dotnet nuget push *.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_API_KEY}} --skip-duplicate
Original file line number Diff line number Diff line change @@ -5,8 +5,9 @@ available on [nuget](https://www.nuget.org/packages/NetRuleEngine/).
55
66(Input) An Object + Rule(s) => (Output) Is Match
77
8- [ ![ NuGet Badge] ( https://buildstats.info/nuget/NetRuleEngine )] ( https://www.nuget.org/packages/NetRuleEngine/ )
9- [ ![ Build Status] ( https://travis-ci.com/AmirSasson/NetRuleEngine.svg?branch=main )] ( https://travis-ci.com/AmirSasson/NetRuleEngine )
8+ [ ![ NuGet Badge] ( https://img.shields.io/nuget/v/NetRuleEngine.svg )] ( https://www.nuget.org/packages/NetRuleEngine/ )
9+ [ ![ Build Status] ( https://github.com/AmirSasson/NetRuleEngine/actions/workflows/ci-cd.yml/badge.svg )] ( https://github.com/AmirSasson/NetRuleEngine/actions/workflows/ci-cd.yml )
10+ [ ![ Downloads] ( https://img.shields.io/nuget/dt/NetRuleEngine.svg )] ( https://www.nuget.org/packages/NetRuleEngine/ )
1011
1112#### Use cases
1213- Bussiness rules that are dynamicaly generated by a user interface, to dermine Yes/No conditions
Original file line number Diff line number Diff line change 33 <PropertyGroup >
44 <TargetFramework >netstandard2.0</TargetFramework >
55 <PackageId >NetRuleEngine</PackageId >
6+ <Version >1.0.0</Version >
7+ <Authors >AmirSasson</Authors >
8+ <Description >C# simple Rule Engine. High performance object rule matching. Support various
9+ complex grouped predicates.</Description >
10+ <PackageProjectUrl >https://github.com/AmirSasson/NetRuleEngine</PackageProjectUrl >
11+ <RepositoryUrl >https://github.com/AmirSasson/NetRuleEngine.git</RepositoryUrl >
12+ <PackageTags >rules-engine;predicate;business-rules;expression-trees</PackageTags >
13+ <PackageReadmeFile >README.md</PackageReadmeFile >
14+ <PackageLicenseFile >LICENSE</PackageLicenseFile >
615 <LangVersion >8</LangVersion >
716 </PropertyGroup >
817
1726 <Pack >True</Pack >
1827 <PackagePath ></PackagePath >
1928 </None >
29+ <None Include =" ..\..\README.md" >
30+ <Pack >True</Pack >
31+ <PackagePath ></PackagePath >
32+ </None >
2033 </ItemGroup >
2134</Project >
You can’t perform that action at this time.
0 commit comments