Skip to content

Commit ab7d9ea

Browse files
committed
⬆️ Bump files with dotnet-file sync
# devlooped/oss - Improve triage actions on issues devlooped/oss@33000c0 - Ignore primary ctor parameter in tests, usually used for testoutput helper devlooped/oss@c779d3d - Add .sass-cache to ignores devlooped/oss@d65f9c7 - Move .sass-cache down alongside other jekyll folders devlooped/oss@551d4e0 - Ignore azure functions local settings devlooped/oss@4bd7025 - Update .gitignore with BenchmarkDotNet artifacts default path devlooped/oss@e20e906 - Remove whitespace and add results to ignore devlooped/oss@ef852e7 - Make sure build runs before pack devlooped/oss@ede013a - Switch to PackOnBuild=true and remove pack step devlooped/oss@6e7a3ab - Upload binlog artifact on debug runs devlooped/oss@a67ae78 - Only ignore App folder directly under the root devlooped/oss@02811fa - Set env:gh_token if present as secret devlooped/oss@97ebd18 - Bump create-pr dependency to avoid error with existing PRs devlooped/oss@11a8757 - Only commit markdown files when resolving includes devlooped/oss@2c10a83 - Update to checkout@v4 devlooped/oss@5fb1723 - Ignore sponsorlink sources in formatting devlooped/oss@f571a42 - Cleanup build and publish to use VersionLabel devlooped/oss@14deaea - SponsorLink code should be checked as regular code devlooped/oss@e81ab75 - Automatically use the new terminal logger if possible devlooped/oss@27a5c9a - Allow choosing build configuration on dispatch devlooped/oss@fef4635 - Remove shared community files from ignores devlooped/oss@65f89e0 # devlooped/sponsors
1 parent 4769ff4 commit ab7d9ea

21 files changed

+358
-213
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ csharp_new_line_before_members_in_anonymous_types = true
9999
# xUnit1013: Public method should be marked as test. Allows using records as test classes
100100
dotnet_diagnostic.xUnit1013.severity = none
101101

102+
# CS9113: Parameter is unread (usually, ITestOutputHelper)
103+
dotnet_diagnostic.CS9113.severity = none
104+
102105
# Default severity for analyzer diagnostics with category 'Style'
103106
dotnet_analyzer_diagnostic.category-Style.severity = none
104107

.gitattributes

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,8 @@
1-
# sln, csproj files (and friends) are always CRLF, even on linux
2-
*.sln text eol=crlf
3-
*.proj text eol=crlf
4-
*.csproj text eol=crlf
1+
# normalize by default
2+
* text=auto encoding=UTF-8
3+
*.sh text eol=lf
54

65
# These are windows specific files which we may as well ensure are
76
# always crlf on checkout
87
*.bat text eol=crlf
98
*.cmd text eol=crlf
10-
11-
# Opt in known filetypes to always normalize line endings on checkin
12-
# and always use native endings on checkout
13-
*.c text
14-
*.config text
15-
*.h text
16-
*.cs text
17-
*.md text
18-
*.tt text
19-
*.txt text
20-
21-
# Some must always be checked out as lf so enforce that for those files
22-
# If these are not lf then bash/cygwin on windows will not be able to
23-
# excute the files
24-
*.sh text eol=lf

.github/dependabot.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,34 @@ updates:
77
directory: /
88
schedule:
99
interval: daily
10+
groups:
11+
Azure:
12+
patterns:
13+
- "Azure*"
14+
- "Microsoft.Azure*"
15+
Identity:
16+
patterns:
17+
- "System.IdentityModel*"
18+
- "Microsoft.IdentityModel*"
19+
System:
20+
patterns:
21+
- "System*"
22+
exclude-patterns:
23+
- "System.IdentityModel*"
24+
Extensions:
25+
patterns:
26+
- "Microsoft.Extensions*"
27+
Web:
28+
patterns:
29+
- "Microsoft.AspNetCore*"
30+
Tests:
31+
patterns:
32+
- "Microsoft.NET.Test*"
33+
- "xunit*"
34+
- "coverlet*"
35+
ThisAssembly:
36+
patterns:
37+
- "ThisAssembly*"
38+
ProtoBuf:
39+
patterns:
40+
- "protobuf-*"

.github/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ changelog:
88
- invalid
99
- wontfix
1010
- need info
11-
- docs
1211
- techdebt
1312
authors:
1413
- devlooped-bot
@@ -24,6 +23,7 @@ changelog:
2423
- title: 📝 Documentation updates
2524
labels:
2625
- docs
26+
- documentation
2727
- title: 🔨 Other
2828
labels:
2929
- '*'

.github/workflows/build.yml

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,30 @@
44
name: build
55
on:
66
workflow_dispatch:
7+
inputs:
8+
configuration:
9+
type: choice
10+
description: Configuration
11+
options:
12+
- Release
13+
- Debug
714
push:
815
branches: [ main, dev, 'dev/*', 'feature/*', 'rel/*' ]
916
paths-ignore:
1017
- changelog.md
11-
- code-of-conduct.md
12-
- security.md
13-
- support.md
1418
- readme.md
1519
pull_request:
1620
types: [opened, synchronize, reopened]
1721

1822
env:
1923
DOTNET_NOLOGO: true
24+
PackOnBuild: true
25+
GeneratePackageOnBuild: true
2026
VersionPrefix: 42.42.${{ github.run_number }}
2127
VersionLabel: ${{ github.ref }}
28+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
29+
MSBUILDTERMINALLOGGER: auto
30+
Configuration: ${{ github.event.inputs.configuration || 'Release' }}
2231

2332
defaults:
2433
run:
@@ -31,7 +40,7 @@ jobs:
3140
matrix: ${{ steps.lookup.outputs.matrix }}
3241
steps:
3342
- name: 🤘 checkout
34-
uses: actions/checkout@v2
43+
uses: actions/checkout@v4
3544

3645
- name: 🔎 lookup
3746
id: lookup
@@ -50,42 +59,39 @@ jobs:
5059
os: ${{ fromJSON(needs.os-matrix.outputs.matrix) }}
5160
steps:
5261
- name: 🤘 checkout
53-
uses: actions/checkout@v2
62+
uses: actions/checkout@v4
5463
with:
5564
submodules: recursive
5665
fetch-depth: 0
5766

5867
- name: 🙏 build
59-
run: dotnet build -m:1
60-
61-
- name: ⚙ GNU grep
62-
if: matrix.os == 'macOS-latest'
63-
run: |
64-
brew install grep
65-
echo 'export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"' >> .bash_profile
68+
run: dotnet build -m:1 -bl:build.binlog
6669

6770
- name: 🧪 test
68-
uses: ./.github/workflows/test
69-
env:
70-
AZURE_WEBPUBSUB: ${{ secrets.AZURE_WEBPUBSUB }}
71+
run: |
72+
dotnet tool update -g dotnet-retest
73+
dotnet retest -- --no-build
7174
72-
- name: 📦 pack
73-
run: dotnet pack -m:1
75+
- name: 🐛 logs
76+
uses: actions/upload-artifact@v3
77+
if: runner.debug && always()
78+
with:
79+
name: logs
80+
path: '*.binlog'
7481

75-
# Only push CI package to sleet feed if building on ubuntu (fastest)
7682
- name: 🚀 sleet
7783
env:
7884
SLEET_CONNECTION: ${{ secrets.SLEET_CONNECTION }}
7985
if: env.SLEET_CONNECTION != ''
8086
run: |
81-
dotnet tool install -g --version 4.0.18 sleet
87+
dotnet tool update sleet -g --allow-downgrade --version $(curl -s --compressed ${{ vars.SLEET_FEED_URL }} | jq '.["sleet:version"]' -r)
8288
sleet push bin --config none -f --verbose -p "SLEET_FEED_CONTAINER=nuget" -p "SLEET_FEED_CONNECTIONSTRING=${{ secrets.SLEET_CONNECTION }}" -p "SLEET_FEED_TYPE=azure" || echo "No packages found"
8389
8490
dotnet-format:
8591
runs-on: ubuntu-latest
8692
steps:
8793
- name: 🤘 checkout
88-
uses: actions/checkout@v2
94+
uses: actions/checkout@v4
8995
with:
9096
submodules: recursive
9197
fetch-depth: 0

.github/workflows/changelog.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
usernames-as-github-logins=true
22
issues_wo_labels=true
33
pr_wo_labels=true
4-
exclude-labels=bydesign,dependencies,duplicate,question,invalid,wontfix,need info,docs
4+
exclude-labels=bydesign,dependencies,duplicate,discussion,question,invalid,wontfix,need info,docs
55
enhancement-label=:sparkles: Implemented enhancements:
66
bugs-label=:bug: Fixed bugs:
77
issues-label=:hammer: Other:

.github/workflows/changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
github_token: ${{ secrets.GITHUB_TOKEN }}
1818

1919
- name: 🤘 checkout
20-
uses: actions/checkout@v2
20+
uses: actions/checkout@v4
2121
with:
2222
fetch-depth: 0
2323
ref: main

.github/workflows/dotnet-file.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,15 @@ jobs:
2424
github_token: ${{ secrets.GITHUB_TOKEN }}
2525

2626
- name: 🤘 checkout
27-
uses: actions/checkout@v2
27+
uses: actions/checkout@v4
2828
with:
2929
fetch-depth: 0
3030
ref: main
3131
token: ${{ env.GH_TOKEN }}
3232

3333
- name: ⌛ rate
3434
shell: pwsh
35+
if: github.event_name != 'workflow_dispatch'
3536
run: |
3637
# add random sleep since we run on fixed schedule
3738
sleep (get-random -max 60)
@@ -70,7 +71,7 @@ jobs:
7071
validate: false
7172

7273
- name: ✍ pull request
73-
uses: peter-evans/create-pull-request@v4
74+
uses: peter-evans/create-pull-request@v6
7475
with:
7576
base: main
7677
branch: dotnet-file-sync

.github/workflows/includes.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,17 @@ jobs:
2121
github_token: ${{ secrets.GITHUB_TOKEN }}
2222

2323
- name: 🤘 checkout
24-
uses: actions/checkout@v2
24+
uses: actions/checkout@v4
2525
with:
2626
token: ${{ env.GH_TOKEN }}
2727

2828
- name: +Mᐁ includes
2929
uses: devlooped/actions-includes@v1
3030

3131
- name: ✍ pull request
32-
uses: peter-evans/create-pull-request@v4
32+
uses: peter-evans/create-pull-request@v6
3333
with:
34+
add-paths: '**.md'
3435
base: main
3536
branch: markdown-includes
3637
delete-branch: true

.github/workflows/publish.yml

Lines changed: 33 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,53 @@
55
name: publish
66
on:
77
release:
8-
types: [released]
8+
types: [prereleased, released]
99

1010
env:
1111
DOTNET_NOLOGO: true
1212
Configuration: Release
13-
13+
PackOnBuild: true
14+
GeneratePackageOnBuild: true
15+
VersionLabel: ${{ github.ref }}
16+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
17+
MSBUILDTERMINALLOGGER: auto
18+
1419
jobs:
1520
publish:
16-
runs-on: ubuntu-latest
21+
runs-on: ${{ vars.PUBLISH_AGENT || 'ubuntu-latest' }}
1722
steps:
1823
- name: 🤘 checkout
19-
uses: actions/checkout@v2
24+
uses: actions/checkout@v4
2025
with:
2126
submodules: recursive
2227
fetch-depth: 0
2328

2429
- name: 🙏 build
25-
run: dotnet build -m:1 -p:version=${GITHUB_REF#refs/*/v}
30+
run: dotnet build -m:1 -bl:build.binlog
2631

2732
- name: 🧪 test
28-
uses: ./.github/workflows/test
29-
env:
30-
AZURE_WEBPUBSUB: ${{ secrets.AZURE_WEBPUBSUB }}
31-
32-
- name: 📦 pack
33-
run: dotnet pack -m:1 -p:version=${GITHUB_REF#refs/*/v}
33+
run: |
34+
dotnet tool update -g dotnet-retest
35+
dotnet retest -- --no-build
36+
37+
- name: 🐛 logs
38+
uses: actions/upload-artifact@v3
39+
if: runner.debug && always()
40+
with:
41+
name: logs
42+
path: '*.binlog'
3443

3544
- name: 🚀 nuget
36-
run: dotnet nuget push ./bin/**/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate
45+
env:
46+
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
47+
if: ${{ env.NUGET_API_KEY != '' && github.event.action != 'prereleased' }}
48+
working-directory: bin
49+
run: dotnet nuget push *.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate
50+
51+
- name: 🚀 sleet
52+
env:
53+
SLEET_CONNECTION: ${{ secrets.SLEET_CONNECTION }}
54+
if: env.SLEET_CONNECTION != ''
55+
run: |
56+
dotnet tool update sleet -g --allow-downgrade --version $(curl -s --compressed ${{ vars.SLEET_FEED_URL }} | jq '.["sleet:version"]' -r)
57+
sleet push bin --config none -f --verbose -p "SLEET_FEED_CONTAINER=nuget" -p "SLEET_FEED_CONNECTIONSTRING=${{ secrets.SLEET_CONNECTION }}" -p "SLEET_FEED_TYPE=azure" || echo "No packages found"

0 commit comments

Comments
 (0)