Skip to content

Commit a84338e

Browse files
author
Arnaud Boussaer
committed
merge from master
2 parents fb9659f + b377f2e commit a84338e

374 files changed

Lines changed: 13605 additions & 3606 deletions

File tree

Some content is hidden

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

.editorconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ indent_style = space
99
indent_size = 4
1010
insert_final_newline = true
1111
trim_trailing_whitespace = true
12+
vsspell_section_id = main
13+
vsspell_ignored_words_main = File:dictionary.dic
1214

1315
# XML Configuration Files
1416
[*.{xml,config,props,targets,nuspec,resx,ruleset,vsixmanifest,vsct,refactorlog,runsettings}]

.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: 52 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,55 @@
11
version: 2
22
updates:
3-
- package-ecosystem: "github-actions"
4-
directory: "/"
5-
schedule:
6-
interval: daily
7-
time: "01:00"
8-
open-pull-requests-limit: 10
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
910

10-
- package-ecosystem: nuget
11-
directory: "/"
12-
schedule:
13-
interval: daily
14-
time: "11:00"
15-
open-pull-requests-limit: 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+
ignore:
19+
- dependency-name: "Microsoft.CodeAnalysis.CSharp.Scripting"
20+
groups:
21+
Azure:
22+
patterns:
23+
- "Azure.*"
24+
- "Microsoft.Azure.*"
25+
- "Microsoft.Extensions.Azure"
26+
AspNetCoreHealthChecks:
27+
patterns:
28+
- "AspNetCore.HealthChecks.*"
29+
AspNetCore:
30+
patterns:
31+
- "Microsoft.AspNetCore.*"
32+
- "Microsoft.Extensions.Features"
33+
MicrosoftExtensions:
34+
patterns:
35+
- "Microsoft.Extensions.*"
36+
EntityFrameworkCore:
37+
patterns:
38+
- "Microsoft.EntityFrameworkCore.*"
39+
OpenTelemetry:
40+
patterns:
41+
- "OpenTelemetry.*"
42+
Serilog:
43+
patterns:
44+
- "Serilog"
45+
- "Serilog.*"
46+
Testcontainers:
47+
patterns:
48+
- "Testcontainers.*"
49+
xUnit:
50+
patterns:
51+
- "xunit"
52+
- "xunit.assert"
53+
- "xunit.core"
54+
- "xunit.extensibility.*"
55+
- "xunit.runner.*"

.github/workflows/docs.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ on:
66
- master
77
- develop
88
tags:
9-
- 'v*'
9+
- "v*"
1010
paths:
11-
- 'docs/**'
12-
- 'mkdocs.yml'
11+
- "docs/**"
12+
- "mkdocs.yml"
1313

1414
permissions:
1515
contents: write
@@ -19,10 +19,10 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Checkout
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@v7
2323

2424
- name: Setup Python
25-
uses: actions/setup-python@v5
25+
uses: actions/setup-python@v6
2626
with:
2727
python-version: 3.x
2828

@@ -34,10 +34,10 @@ jobs:
3434

3535
- name: Upload Documentation
3636
if: success()
37-
uses: actions/upload-pages-artifact@v3
37+
uses: actions/upload-pages-artifact@v5
3838
with:
3939
name: github-pages
40-
path: 'site/'
40+
path: "site/"
4141

4242
pages:
4343
runs-on: ubuntu-latest
@@ -51,7 +51,7 @@ jobs:
5151
steps:
5252
- name: Deploy Documentation
5353
id: deployment
54-
uses: actions/deploy-pages@v4
54+
uses: actions/deploy-pages@v5
5555

5656
environment:
5757
name: github-pages

.github/workflows/dotnet.yml

Lines changed: 88 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -5,110 +5,126 @@ env:
55
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
66
DOTNET_ENVIRONMENT: github
77
ASPNETCORE_ENVIRONMENT: github
8-
BUILD_PATH: '${{github.workspace}}/artifacts'
9-
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
8+
BUILD_PATH: "${{github.workspace}}/artifacts"
9+
10+
permissions:
11+
contents: read
1012

1113
on:
1214
push:
1315
branches:
1416
- master
1517
- develop
1618
tags:
17-
- 'v*'
19+
- "v*"
1820
paths-ignore:
19-
- 'docs/**'
20-
- 'mkdocs.yml'
21+
- "docs/**"
22+
- "mkdocs.yml"
2123
pull_request:
2224
branches:
2325
- master
2426
- develop
2527

2628
jobs:
27-
2829
build:
2930
runs-on: ubuntu-latest
3031

3132
services:
3233
mssql:
3334
image: mcr.microsoft.com/mssql/server:2019-latest
3435
env:
35-
MSSQL_SA_PASSWORD: '!P@ssw0rd'
36-
ACCEPT_EULA: 'Y'
36+
MSSQL_SA_PASSWORD: "!P@ssw0rd"
37+
ACCEPT_EULA: "Y"
3738
ports:
3839
- 1433:1433
3940
volumes:
4041
- mssql_data:/var/opt/mssql
4142

4243
steps:
43-
- name: Checkout
44-
uses: actions/checkout@v4
45-
with:
46-
fetch-depth: 0
47-
48-
- name: Install .NET
49-
uses: actions/setup-dotnet@v4
50-
with:
51-
dotnet-version: |
52-
6.0.x
53-
8.0.x
54-
55-
- name: Restore Dependencies
56-
run: dotnet restore
57-
58-
- name: Build Solution
59-
run: dotnet build --no-restore --configuration Release
60-
61-
- name: Run Test
62-
run: dotnet test --no-build --configuration Release --collect:"XPlat Code Coverage" --settings coverlet.runsettings
63-
64-
- name: Report Coverage
65-
if: success()
66-
uses: coverallsapp/github-action@v2
67-
with:
68-
file: "${{github.workspace}}/test/*/TestResults/*/coverage.info"
69-
format: lcov
70-
71-
- name: Create Packages
72-
if: success() && github.event_name != 'pull_request'
73-
run: dotnet pack --configuration Release --include-symbols --include-source --no-build --no-restore --output "${{env.BUILD_PATH}}"
74-
75-
- name: Upload Packages
76-
if: success() && github.event_name != 'pull_request'
77-
uses: actions/upload-artifact@v4
78-
with:
79-
name: packages
80-
path: '${{env.BUILD_PATH}}'
44+
- name: Checkout
45+
uses: actions/checkout@v7
46+
with:
47+
fetch-depth: 0
48+
49+
- name: Install .NET
50+
uses: actions/setup-dotnet@v5
51+
with:
52+
dotnet-version: 10.x
53+
54+
- name: Restore Dependencies
55+
run: dotnet restore
56+
57+
- name: Build Solution
58+
run: dotnet build --no-restore --configuration Release
59+
60+
- name: Run Test
61+
run: dotnet test --no-build --configuration Release --coverlet --coverlet-output-format lcov
62+
63+
- name: Collect Coverage
64+
if: success()
65+
id: coverage
66+
run: |
67+
FILES=$(find ${{github.workspace}} -name 'coverage.*.info' -print | tr '\n' ' ')
68+
echo "files=$FILES" >> $GITHUB_OUTPUT
69+
70+
- name: Report Coverage
71+
if: success() && steps.coverage.outputs.files != ''
72+
uses: coverallsapp/github-action@v2
73+
continue-on-error: true
74+
with:
75+
files: ${{ steps.coverage.outputs.files }}
76+
format: lcov
77+
78+
- name: Create Packages
79+
if: success() && github.event_name != 'pull_request'
80+
run: dotnet pack --configuration Release --no-build --output "${{env.BUILD_PATH}}"
81+
82+
- name: Upload Packages
83+
if: success() && github.event_name != 'pull_request'
84+
uses: actions/upload-artifact@v7
85+
with:
86+
name: packages
87+
path: "${{env.BUILD_PATH}}"
8188

8289
deploy:
8390
runs-on: ubuntu-latest
8491
needs: build
8592
if: success() && github.event_name != 'pull_request' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v'))
93+
permissions:
94+
contents: read
95+
packages: write
8696

8797
steps:
88-
- name: Download Artifact
89-
uses: actions/download-artifact@v4
90-
with:
91-
name: packages
92-
93-
- name: Publish Packages GitHub
94-
run: |
95-
for package in $(find -name "*.nupkg"); do
96-
echo "${0##*/}": Pushing $package...
97-
dotnet nuget push $package --source https://nuget.pkg.github.com/loresoft/index.json --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate
98-
done
99-
100-
- name: Publish Packages feedz
101-
run: |
102-
for package in $(find -name "*.nupkg"); do
103-
echo "${0##*/}": Pushing $package...
104-
dotnet nuget push $package --source https://f.feedz.io/loresoft/open/nuget/index.json --api-key ${{ secrets.FEEDDZ_KEY }} --skip-duplicate
105-
done
106-
107-
- name: Publish Packages Nuget
108-
if: startsWith(github.ref, 'refs/tags/v')
109-
run: |
110-
for package in $(find -name "*.nupkg"); do
111-
echo "${0##*/}": Pushing $package...
112-
dotnet nuget push $package --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_KEY }} --skip-duplicate
113-
done
98+
- name: Download Artifact
99+
uses: actions/download-artifact@v8
100+
with:
101+
name: packages
102+
103+
- name: Publish Packages GitHub
104+
env:
105+
GITHUB_PACKAGE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
106+
run: |
107+
for package in $(find -name "*.nupkg"); do
108+
echo "${0##*/}": Pushing $package...
109+
dotnet nuget push "$package" --source https://nuget.pkg.github.com/loresoft/index.json --api-key "$GITHUB_PACKAGE_TOKEN" --skip-duplicate
110+
done
111+
112+
- name: Publish Packages feedz
113+
env:
114+
FEEDZ_API_KEY: ${{ secrets.FEEDDZ_KEY }}
115+
run: |
116+
for package in $(find -name "*.nupkg"); do
117+
echo "${0##*/}": Pushing $package...
118+
dotnet nuget push "$package" --source https://f.feedz.io/loresoft/open/nuget/index.json --api-key "$FEEDZ_API_KEY" --skip-duplicate
119+
done
120+
121+
- name: Publish Packages Nuget
122+
if: startsWith(github.ref, 'refs/tags/v')
123+
env:
124+
NUGET_API_KEY: ${{ secrets.NUGET_KEY }}
125+
run: |
126+
for package in $(find -name "*.nupkg"); do
127+
echo "${0##*/}": Pushing $package...
128+
dotnet nuget push "$package" --source https://api.nuget.org/v3/index.json --api-key "$NUGET_API_KEY" --skip-duplicate
129+
done
114130

.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@v3
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}}

0 commit comments

Comments
 (0)