Skip to content

Commit 64dd953

Browse files
committed
first commit
1 parent b0b7e8c commit 64dd953

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+6886
-2
lines changed

.editorconfig

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# EditorConfig: https://EditorConfig.org
2+
3+
root = true
4+
5+
# All Files
6+
[*]
7+
charset = utf-8
8+
indent_style = space
9+
indent_size = 4
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
vsspell_section_id = main
13+
vsspell_ignored_words_main = File:dictionary.dic
14+
15+
# XML Configuration Files
16+
[*.{xml,config,props,targets,nuspec,resx,ruleset,vsixmanifest,vsct,refactorlog,runsettings}]
17+
indent_size = 2
18+
19+
# JSON Files
20+
[*.{json,json5,webmanifest}]
21+
indent_size = 2
22+
23+
# Project Files
24+
[*.{csproj,sqlproj}]
25+
indent_size = 2
26+
27+
# YAML Files
28+
[*.{yml,yaml}]
29+
indent_size = 2
30+
31+
# Markdown Files
32+
[*.md]
33+
trim_trailing_whitespace = false
34+
35+
# Web Files
36+
[*.{htm,html,js,jsm,ts,tsx,css,sass,scss,less,pcss,svg,vue}]
37+
indent_size = 2
38+
39+
# Batch Files
40+
[*.{cmd,bat}]
41+
end_of_line = crlf
42+
43+
# Bash Files
44+
[*.sh]
45+
end_of_line = lf
46+
47+
[*.{cs,vb}]
48+
dotnet_sort_system_directives_first = true
49+
dotnet_separate_import_directive_groups = true
50+
dotnet_style_namespace_match_folder = true
51+
52+
[*.cs]
53+
csharp_using_directive_placement = outside_namespace
54+
csharp_style_namespace_declarations = file_scoped:warning

.gitattributes

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
###############################################################################
2+
# Set default behavior to automatically normalize line endings.
3+
###############################################################################
4+
* text=auto
5+
6+
###############################################################################
7+
# Set default behavior for command prompt diff.
8+
#
9+
# This is need for earlier builds of msysgit that does not have it on by
10+
# default for csharp files.
11+
# Note: This is only used by command line
12+
###############################################################################
13+
#*.cs diff=csharp
14+
15+
###############################################################################
16+
# Set the merge driver for project and solution files
17+
#
18+
# Merging from the command prompt will add diff markers to the files if there
19+
# are conflicts (Merging from VS is not affected by the settings below, in VS
20+
# the diff markers are never inserted). Diff markers may cause the following
21+
# file extensions to fail to load in VS. An alternative would be to treat
22+
# these files as binary and thus will always conflict and require user
23+
# intervention with every merge. To do so, just uncomment the entries below
24+
###############################################################################
25+
#*.sln merge=binary
26+
#*.csproj merge=binary
27+
#*.vbproj merge=binary
28+
#*.vcxproj merge=binary
29+
#*.vcproj merge=binary
30+
#*.dbproj merge=binary
31+
#*.fsproj merge=binary
32+
#*.lsproj merge=binary
33+
#*.wixproj merge=binary
34+
#*.modelproj merge=binary
35+
#*.sqlproj merge=binary
36+
#*.wwaproj merge=binary
37+
38+
###############################################################################
39+
# behavior for image files
40+
#
41+
# image files are treated as binary by default.
42+
###############################################################################
43+
#*.jpg binary
44+
#*.png binary
45+
#*.gif binary
46+
47+
###############################################################################
48+
# diff behavior for common document formats
49+
#
50+
# Convert binary document formats to text before diffing them. This feature
51+
# is only available from the command line. Turn it on by uncommenting the
52+
# entries below.
53+
###############################################################################
54+
#*.doc diff=astextplain
55+
#*.DOC diff=astextplain
56+
#*.docx diff=astextplain
57+
#*.DOCX diff=astextplain
58+
#*.dot diff=astextplain
59+
#*.DOT diff=astextplain
60+
#*.pdf diff=astextplain
61+
#*.PDF diff=astextplain
62+
#*.rtf diff=astextplain
63+
#*.RTF diff=astextplain

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: loresoft

.github/dependabot.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
time: "01:00"
8+
timezone: "America/Chicago"
9+
open-pull-requests-limit: 10
10+
11+
- package-ecosystem: nuget
12+
directory: "/"
13+
schedule:
14+
interval: daily
15+
time: "02:00"
16+
timezone: "America/Chicago"
17+
open-pull-requests-limit: 10
18+
groups:
19+
Azure:
20+
patterns:
21+
- "Azure.*"
22+
- "Microsoft.Azure.*"
23+
- "Microsoft.Extensions.Azure"
24+
AspNetCoreHealthChecks:
25+
patterns:
26+
- "AspNetCore.HealthChecks.*"
27+
AspNetCore:
28+
patterns:
29+
- "Microsoft.AspNetCore.*"
30+
- "Microsoft.Extensions.Features"
31+
MicrosoftExtensions:
32+
patterns:
33+
- "Microsoft.Extensions.*"
34+
EntityFrameworkCore:
35+
patterns:
36+
- "Microsoft.EntityFrameworkCore.*"
37+
OpenTelemetry:
38+
patterns:
39+
- "OpenTelemetry.*"
40+
Serilog:
41+
patterns:
42+
- "Serilog"
43+
- "Serilog.*"
44+
Hangfire:
45+
patterns:
46+
- "Hangfire"
47+
- "Hangfire.*"
48+
Testcontainers:
49+
patterns:
50+
- "Testcontainers.*"
51+
xUnit:
52+
patterns:
53+
- "xunit"
54+
- "xunit.assert"
55+
- "xunit.core"
56+
- "xunit.extensibility.*"
57+
- "xunit.runner.*"

.github/workflows/dotnet.yml

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
name: Build
2+
permissions:
3+
contents: read
4+
5+
env:
6+
DOTNET_NOLOGO: true
7+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
8+
DOTNET_ENVIRONMENT: github
9+
ASPNETCORE_ENVIRONMENT: github
10+
BUILD_PATH: "${{github.workspace}}/artifacts"
11+
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
12+
13+
on:
14+
push:
15+
branches:
16+
- main
17+
- develop
18+
tags:
19+
- "v*"
20+
pull_request:
21+
branches:
22+
- main
23+
- develop
24+
25+
jobs:
26+
build:
27+
runs-on: ubuntu-latest
28+
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v6
32+
with:
33+
fetch-depth: 0
34+
35+
- name: Install .NET Core
36+
uses: actions/setup-dotnet@v5
37+
with:
38+
dotnet-version: 10.x
39+
40+
- name: Restore Dependencies
41+
run: dotnet restore
42+
43+
- name: Build Solution
44+
run: dotnet build --no-restore --configuration Release
45+
46+
- name: Run Test
47+
run: dotnet test --no-build --configuration Release --collect:"XPlat Code Coverage" --settings coverlet.runsettings
48+
49+
- name: Create Packages
50+
if: success() && github.event_name != 'pull_request'
51+
run: dotnet pack --configuration Release --no-build --output "${{env.BUILD_PATH}}"
52+
53+
- name: Upload Packages
54+
if: success() && github.event_name != 'pull_request'
55+
uses: actions/upload-artifact@v5
56+
with:
57+
name: packages
58+
path: "${{env.BUILD_PATH}}"
59+
60+
deploy:
61+
runs-on: ubuntu-latest
62+
needs: build
63+
if: success() && github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
64+
permissions:
65+
contents: read
66+
packages: write
67+
68+
steps:
69+
- name: Download Artifact
70+
uses: actions/download-artifact@v6
71+
with:
72+
name: packages
73+
74+
- name: Publish Packages GitHub
75+
run: |
76+
for package in $(find -name "*.nupkg"); do
77+
echo "${0##*/}": Pushing $package...
78+
dotnet nuget push $package --source https://nuget.pkg.github.com/loresoft/index.json --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate
79+
done
80+
81+
- name: Publish Packages feedz
82+
run: |
83+
for package in $(find -name "*.nupkg"); do
84+
echo "${0##*/}": Pushing $package...
85+
dotnet nuget push $package --source https://f.feedz.io/loresoft/open/nuget/index.json --api-key ${{ secrets.FEEDDZ_KEY }} --skip-duplicate
86+
done
87+
88+
- name: Publish Packages Nuget
89+
if: startsWith(github.ref, 'refs/tags/v')
90+
run: |
91+
for package in $(find -name "*.nupkg"); do
92+
echo "${0##*/}": Pushing $package...
93+
dotnet nuget push $package --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_KEY }} --skip-duplicate
94+
done

.github/workflows/merge.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Dependabot Auto-Merge
2+
on: pull_request
3+
4+
permissions:
5+
contents: write
6+
pull-requests: write
7+
8+
jobs:
9+
dependabot:
10+
runs-on: ubuntu-latest
11+
if: github.actor == 'dependabot[bot]'
12+
13+
steps:
14+
- name: Dependabot Metadata
15+
id: metadata
16+
uses: dependabot/fetch-metadata@v2
17+
with:
18+
github-token: "${{ secrets.GITHUB_TOKEN }}"
19+
20+
- name: Dependabot Auto-Merge PRs
21+
run: gh pr merge --auto --merge "$PR_URL"
22+
env:
23+
PR_URL: ${{github.event.pull_request.html_url}}
24+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/stale.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Stale Items
2+
on:
3+
schedule:
4+
- cron: "0 6 * * 0"
5+
6+
workflow_dispatch:
7+
8+
jobs:
9+
stale:
10+
name: Mark and Close Stale Items
11+
runs-on: ubuntu-latest
12+
permissions:
13+
issues: write
14+
pull-requests: write
15+
steps:
16+
- uses: actions/stale@v10
17+
with:
18+
repo-token: ${{ secrets.GITHUB_TOKEN }}
19+
20+
days-before-stale: 365
21+
days-before-close: 45
22+
23+
# Issue configuration
24+
stale-issue-label: "stale"
25+
close-issue-label: "closed:stale"
26+
exempt-issue-labels: "pinned,security,enhancement,bug,backlog,epic"
27+
28+
stale-issue-message: |
29+
## ⏰ Stale Issue
30+
31+
This issue has had no activity for 1 year.
32+
It will be closed in 45 days unless there is new activity.
33+
To keep it open, comment or remove the `stale` label.
34+
35+
close-issue-message: |
36+
## 🔒 Closed: Inactive Issue
37+
38+
Closed after 45 days of inactivity.
39+
To reopen, comment with a reason and a maintainer will review.
40+
41+
# PR configuration
42+
stale-pr-label: "stale"
43+
close-pr-label: "closed:stale"
44+
exempt-pr-labels: "pinned,work-in-progress,ready-for-review"
45+
46+
stale-pr-message: |
47+
## ⏰ Stale Pull Request
48+
49+
No activity for 1 year. Will close in 45 days unless updated.
50+
To keep open, push commits, comment, or remove the `stale` label.
51+
52+
close-pr-message: |
53+
## 🔒 Closed: Inactive PR
54+
55+
Closed after 45 days of inactivity.
56+
To continue, reopen or submit a new PR and reference this one.

Directory.Packages.props

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<Project>
2+
<PropertyGroup>
3+
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
4+
<CentralPackageTransitivePinningEnabled>false</CentralPackageTransitivePinningEnabled>
5+
</PropertyGroup>
6+
<ItemGroup>
7+
<PackageVersion Include="AssemblyMetadata.Generators" Version="2.1.0" />
8+
<PackageVersion Include="AwesomeAssertions" Version="9.3.0" />
9+
<PackageVersion Include="dbup-sqlserver" Version="6.0.16" />
10+
<PackageVersion Include="MicroSoft.Data.SqlClient" Version="6.1.3" />
11+
<PackageVersion Include="Microsoft.Extensions.Configuration.Json" Version="10.0.0" />
12+
<PackageVersion Include="Microsoft.Extensions.Hosting" Version="10.0.0" />
13+
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
14+
<PackageVersion Include="MinVer" Version="6.0.0" />
15+
<PackageVersion Include="Polyfill" Version="9.3.0" />
16+
<PackageVersion Include="Serilog" Version="4.3.0" />
17+
<PackageVersion Include="Serilog.AspNetCore" Version="9.0.0" />
18+
<PackageVersion Include="Serilog.Extensions.Hosting" Version="9.0.0" />
19+
<PackageVersion Include="Serilog.Settings.Configuration" Version="10.0.0" />
20+
<PackageVersion Include="Serilog.Sinks.Console" Version="6.1.1" />
21+
<PackageVersion Include="System.Buffers" Version="4.6.1" />
22+
<PackageVersion Include="System.CommandLine" Version="2.0.0" />
23+
<PackageVersion Include="System.Memory" Version="4.6.3" />
24+
<PackageVersion Include="Testcontainers.MsSql" Version="4.9.0" />
25+
<PackageVersion Include="XUnit.Hosting" Version="4.0.0" />
26+
<PackageVersion Include="xunit.runner.visualstudio" Version="3.1.5" />
27+
<PackageVersion Include="xunit.v3" Version="3.2.0" />
28+
</ItemGroup>
29+
</Project>

0 commit comments

Comments
 (0)