Skip to content

Commit

Permalink
README updated
Browse files Browse the repository at this point in the history
  • Loading branch information
zsrdjan committed Aug 23, 2024
1 parent 236d475 commit ce1e998
Show file tree
Hide file tree
Showing 16 changed files with 157 additions and 555 deletions.
10 changes: 4 additions & 6 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ root = true

; For more visit http://editorconfig.org.

; Choose between lf or rf on "end_of_line" property
[*.proto]
indent_style = tab
indent_size = tab
tab_width = 4

[*.{asax,ascx,aspx,cs,cshtml,css,htm,html,js,jsx,master,razor,skin,ts,tsx,vb,xaml,xamlx,xoml}]
indent_style = space
indent_size = 4
Expand Down Expand Up @@ -74,3 +68,7 @@ dotnet_style_qualification_for_field = false:hint
dotnet_style_qualification_for_method = false:hint
dotnet_style_qualification_for_property = false:hint
dotnet_style_require_accessibility_modifiers = for_non_interface_members:hint

[*.cs]
dotnet_diagnostic.CA1715.severity = none # Identifiers should have correct prefix
dotnet_diagnostic.CA1707.severity = none # Identifiers should not contain underscores
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: CI

on:
push:
tags:
- '*'
branches:
- main
pull_request:
Expand All @@ -22,7 +24,8 @@ jobs:
- name: Build and Test
run: ./Build.ps1
shell: pwsh
- name: Push to MyGet
- name: Push to NuGet
if: github.ref == 'refs/heads/main'
env:
NUGET_URL: https://api.nuget.org/v3/index.json
NUGET_API_KEY: ${{ secrets.NUGET_FRAKTALIO_CI_API_KEY }}
Expand Down
12 changes: 8 additions & 4 deletions Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,22 @@ function Exec
{
[CmdletBinding()]
param(
[Parameter(Position=0,Mandatory=1)][scriptblock]$cmd,
[Parameter(Position=1,Mandatory=0)][string]$errorMessage = ($msgs.error_bad_command -f $cmd)
[Parameter(Position = 0, Mandatory = 1)][scriptblock]$cmd,
[Parameter(Position = 1, Mandatory = 0)][string]$errorMessage = ($msgs.error_bad_command -f $cmd)
)
& $cmd
if ($lastexitcode -ne 0) {
if ($lastexitcode -ne 0)
{
throw ("Exec: " + $errorMessage)
}
}

$artifacts = ".\artifacts"

if(Test-Path $artifacts) { Remove-Item $artifacts -Force -Recurse }
if (Test-Path $artifacts)
{
Remove-Item $artifacts -Force -Recurse
}

exec { & dotnet clean -c Release }

Expand Down
10 changes: 5 additions & 5 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@
<Authors>Ivan Dugalić, Srđan Živojinović</Authors>
<Copyright>Copyright © 2024 Fraktalio. All rights reserved.</Copyright>
<Company>Fraktalio</Company>

<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>

<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
<CodeAnalysisTreatWarningsAsErrors>true</CodeAnalysisTreatWarningsAsErrors>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<Features>strict</Features>
<AnalysisLevel>latest</AnalysisLevel>
<WarningLevel>9999</WarningLevel>
<AnalysisLevel>8.0</AnalysisLevel>
<AnalysisMode>Recommended</AnalysisMode>

<PackageTags>domain-modeling;event-sourcing;eventsourcing;cqrs</PackageTags>
<PackageIcon>gradient_128x128.png</PackageIcon>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
Expand Down
20 changes: 10 additions & 10 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="coverlet.collector" Version="6.0.0" />
<PackageVersion Include="FakeItEasy" Version="8.1.0" />
<PackageVersion Include="FluentAssertions" Version="6.12.0" />
<PackageVersion Include="JetBrains.Annotations" Version="2023.3.0" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
<PackageVersion Include="MinVer" Version="5.0.0" />
<PackageVersion Include="NUnit" Version="3.14.0" />
<PackageVersion Include="NUnit3TestAdapter" Version="4.5.0" />
<PackageVersion Include="Verify.NUnit" Version="22.5.0" />
<PackageVersion Include="coverlet.collector" Version="6.0.0"/>
<PackageVersion Include="FakeItEasy" Version="8.1.0"/>
<PackageVersion Include="FluentAssertions" Version="6.12.0"/>
<PackageVersion Include="JetBrains.Annotations" Version="2023.3.0"/>
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.8.0"/>
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0"/>
<PackageVersion Include="MinVer" Version="5.0.0"/>
<PackageVersion Include="NUnit" Version="3.14.0"/>
<PackageVersion Include="NUnit3TestAdapter" Version="4.5.0"/>
<PackageVersion Include="Verify.NUnit" Version="22.5.0"/>
<PackageVersion Include="NUnit.Analyzers" Version="4.1.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
12 changes: 8 additions & 4 deletions Push.ps1
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
$scriptName = $MyInvocation.MyCommand.Name
$artifacts = "./artifacts"

if ([string]::IsNullOrEmpty($Env:NUGET_API_KEY)) {
if ( [string]::IsNullOrEmpty($Env:NUGET_API_KEY))
{
Write-Host "${scriptName}: NUGET_API_KEY is empty or not set. Skipped pushing package(s)."
} else {
}
else
{
Get-ChildItem $artifacts -Filter "*.nupkg" | ForEach-Object {
Write-Host "$($scriptName): Pushing $($_.Name)"
Write-Host "$( $scriptName ): Pushing $( $_.Name )"
dotnet nuget push $_ --source $Env:NUGET_URL --api-key $Env:NUGET_API_KEY
if ($lastexitcode -ne 0) {
if ($lastexitcode -ne 0)
{
throw ("Exec: " + $errorMessage)
}
}
Expand Down
Loading

0 comments on commit ce1e998

Please sign in to comment.