Skip to content

Commit a7351c3

Browse files
committed
⬆️ Bump files with dotnet-file sync
# devlooped/oss - Rename sample assemblies for nicer display devlooped/oss@93df7c7 - Minimal docs on consuming devlooped/oss@827a1d1 - Add our implementation of JWT manifest reading and reporting devlooped/oss@a0ae727 - Make sure we report only once per product for entire solution devlooped/oss@4b7f922 - Update to newest JsonWebTokens devlooped/oss@068140b - Introduce lazy-init of sponsoring status, simplify diagnostics devlooped/oss@5009784 - Remove dependency on ThisAssembly devlooped/oss@c879f25 - Add support and showcase determining install time devlooped/oss@717ddb1 - Add nullable and generated code annotations devlooped/oss@b2a11fa - Whitespace and formatting devlooped/oss@d74f511 - Improve versioning of sample package devlooped/oss@3b943f5 - Simplify and unify manifest reading implementation devlooped/oss@4fca946 - Fix formatting/whitespace devlooped/oss@7febebc - Dynamically fetch devlooped JWK from github devlooped/oss@55124bc - Remove unused tracing overloads devlooped/oss@08a8488 - Fix path to jwk.ps1 alongside the SponsorLink.targets devlooped/oss@c4830fc - Replace JWT package in tests targets too devlooped/oss@ba1310c - Make sure Funding class is available to intellisense devlooped/oss@5813f21 - Ignore primary ctor parameter in tests, usually used for testoutput helper devlooped/oss@c779d3d - Ignore sponsorlink sources in formatting devlooped/oss@f571a42 - SponsorLink code should be checked as regular code devlooped/oss@e81ab75 - Update dependabot.yml with some default groupings devlooped/oss@cba10bb - Add System.IdentityModel group devlooped/oss@e7d18ae - Add MS.IdentityModel to identity group devlooped/oss@14d1868 - Exclude System.IdentityModel from System group devlooped/oss@35ca3f3 - Fix dependabot group for tests devlooped/oss@49661db - Parallelize format to speed up build devlooped/oss@13d67e2 - 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 - Set env:gh_token if present as secret devlooped/oss@97ebd18 - Update to checkout@v4 devlooped/oss@5fb1723 - Cleanup build and publish to use VersionLabel devlooped/oss@14deaea # devlooped/sponsors
1 parent ab69a56 commit a7351c3

Some content is hidden

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

53 files changed

+3098
-77
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

.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/workflows/build.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,12 @@ on:
1717

1818
env:
1919
DOTNET_NOLOGO: true
20+
PackOnBuild: true
21+
GeneratePackageOnBuild: true
2022
VersionPrefix: 42.42.${{ github.run_number }}
2123
VersionLabel: ${{ github.ref }}
22-
24+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
25+
2326
defaults:
2427
run:
2528
shell: bash
@@ -31,7 +34,7 @@ jobs:
3134
matrix: ${{ steps.lookup.outputs.matrix }}
3235
steps:
3336
- name: 🤘 checkout
34-
uses: actions/checkout@v2
37+
uses: actions/checkout@v4
3538

3639
- name: 🔎 lookup
3740
id: lookup
@@ -50,13 +53,13 @@ jobs:
5053
os: ${{ fromJSON(needs.os-matrix.outputs.matrix) }}
5154
steps:
5255
- name: 🤘 checkout
53-
uses: actions/checkout@v2
56+
uses: actions/checkout@v4
5457
with:
5558
submodules: recursive
5659
fetch-depth: 0
5760

5861
- name: 🙏 build
59-
run: dotnet build -m:1
62+
run: dotnet build -m:1 -bl:build.binlog
6063

6164
- name: ⚙ GNU grep
6265
if: matrix.os == 'macOS-latest'
@@ -67,8 +70,12 @@ jobs:
6770
- name: 🧪 test
6871
uses: ./.github/workflows/test
6972

70-
- name: 📦 pack
71-
run: dotnet pack -m:1
73+
- name: 🐛 logs
74+
uses: actions/upload-artifact@v3
75+
if: runner.debug && always()
76+
with:
77+
name: logs
78+
path: '*.binlog'
7279

7380
# Only push CI package to sleet feed if building on ubuntu (fastest)
7481
- name: 🚀 sleet
@@ -81,10 +88,9 @@ jobs:
8188
8289
dotnet-format:
8390
runs-on: ubuntu-latest
84-
needs: build
8591
steps:
8692
- name: 🤘 checkout
87-
uses: actions/checkout@v2
93+
uses: actions/checkout@v4
8894
with:
8995
submodules: recursive
9096
fetch-depth: 0

.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: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,33 @@ on:
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+
1418
jobs:
1519
publish:
1620
runs-on: ubuntu-latest
1721
steps:
1822
- name: 🤘 checkout
19-
uses: actions/checkout@v2
23+
uses: actions/checkout@v4
2024
with:
2125
submodules: recursive
2226
fetch-depth: 0
2327

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

2731
- name: 🧪 test
2832
uses: ./.github/workflows/test
2933

30-
- name: 📦 pack
31-
run: dotnet pack -m:1 -p:version=${GITHUB_REF#refs/*/v}
34+
- name: 🐛 logs
35+
uses: actions/upload-artifact@v3
36+
if: runner.debug && always()
37+
with:
38+
name: logs
39+
path: '*.binlog'
3240

3341
- name: 🚀 nuget
3442
run: dotnet nuget push ./bin/**/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate

.github/workflows/sponsor.yml

Lines changed: 50 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,58 @@ jobs:
99
sponsor:
1010
runs-on: ubuntu-latest
1111
continue-on-error: true
12-
env:
13-
token: ${{ secrets.GH_TOKEN }}
14-
if: ${{ !endsWith(github.event.sender.login, '[bot]') && !endsWith(github.event.sender.login, 'bot') }}
12+
if: ${{ !endsWith(github.event.sender.login, '[bot]') && github.event.sender.login != github.repository_owner }}
1513
steps:
1614
- name: 🤘 checkout
17-
if: env.token != ''
18-
uses: actions/checkout@v2
19-
15+
uses: actions/checkout@v4
16+
17+
- name: ⚙ install
18+
run: dotnet tool update -g dotnet-sponsor --prerelease
19+
20+
- name: 💻 setup
21+
run: |
22+
sponsor --version
23+
pushd ~
24+
git config -f .sponsorlink/.netconfig sponsorlink.id devlooped.sponsors.ci
25+
26+
- name: 🧪 run
27+
shell: pwsh
28+
env:
29+
SPONSORABLE: ${{ secrets.GITHUB_TOKEN }}
30+
TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
run: |
32+
$env:TOKEN | sponsor sync $env:SPONSORABLE --tos --with-token
33+
if ($LASTEXITCODE -eq -5) {
34+
throw "Can not determine sponsorship with the provided token"
35+
} elseif ($LASTEXITCODE -eq -6) {
36+
Write-Output "User is not sponsoring, skipping"
37+
exit 0
38+
} elseif ($LASTEXITCODE -eq -3) {
39+
Write-Output "$env:SPONSORABLE is not set up for SponsorLink"
40+
exit 0
41+
} elseif ($LASTEXITCODE -eq -4) {
42+
Write-Output "$env:SPONSORABLE SponsorLink manifest is invalid"
43+
exit 0
44+
} elseif ($LASTEXITCODE -ne -0) {
45+
Write-Output "Could not determine sponsor status"
46+
exit $LASTEXITCODE
47+
}
48+
49+
$roles = cat ~/.sponsorlink/github/$env:SPONSORABLE.jwt | jq -R 'split(".") | .[1] | @base64d | fromjson | .roles[]'
50+
if (($roles | jq 'select(. == "team")' -r) -eq "team") {
51+
Write-Output "User is a team member, skipping"
52+
exit 0
53+
} elseif (($roles | jq 'select(. == "contrib")' -r) -eq "contrib") {
54+
Write-Output "User is a contributor!"
55+
} else {
56+
Write-Output "User is a sponsor"
57+
if (($roles | jq 'select(. == "org")' -r) -eq "org") {
58+
Write-Output " (indirectly as a sponsoring organization member)"
59+
} elseif (($roles | jq 'select(. == "user")' -r) -eq "user") {
60+
Write-Output " (as a direct sponsor)"
61+
}
62+
}
63+
2064
- name: 💜 sponsor
2165
if: env.token != ''
2266
uses: devlooped/actions-sponsor@main

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
bin
2-
app
32
obj
43
artifacts
54
pack
65
TestResults
6+
results
7+
BenchmarkDotNet.Artifacts
8+
/app
79
.vs
810
.vscode
911
.idea
12+
local.settings.json
1013

1114
*.suo
1215
*.sdf
@@ -31,5 +34,6 @@ node_modules
3134
_site
3235
.jekyll-metadata
3336
.jekyll-cache
37+
.sass-cache
3438
Gemfile.lock
3539
package-lock.json

docs/sponsors.md

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,36 @@
11
[![Clarius Org](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/clarius.png "Clarius Org")](https://github.com/clarius)
2-
[![Christian Findlay](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/MelbourneDeveloper.png "Christian Findlay")](https://github.com/MelbourneDeveloper)
3-
[![C. Augusto Proiete](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/augustoproiete.png "C. Augusto Proiete")](https://github.com/augustoproiete)
42
[![Kirill Osenkov](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/KirillOsenkov.png "Kirill Osenkov")](https://github.com/KirillOsenkov)
53
[![MFB Technologies, Inc.](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/MFB-Technologies-Inc.png "MFB Technologies, Inc.")](https://github.com/MFB-Technologies-Inc)
6-
[![SandRock](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/sandrock.png "SandRock")](https://github.com/sandrock)
7-
[![Eric C](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/eeseewy.png "Eric C")](https://github.com/eeseewy)
8-
[![Andy Gocke](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/agocke.png "Andy Gocke")](https://github.com/agocke)
4+
[![Stephen Shaw](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/decriptor.png "Stephen Shaw")](https://github.com/decriptor)
5+
[![Torutek](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/torutek-gh.png "Torutek")](https://github.com/torutek-gh)
6+
[![DRIVE.NET, Inc.](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/drivenet.png "DRIVE.NET, Inc.")](https://github.com/drivenet)
7+
[![Ashley Medway](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/AshleyMedway.png "Ashley Medway")](https://github.com/AshleyMedway)
8+
[![Keith Pickford](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/Keflon.png "Keith Pickford")](https://github.com/Keflon)
9+
[![Thomas Bolon](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/tbolon.png "Thomas Bolon")](https://github.com/tbolon)
10+
[![Kori Francis](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/kfrancis.png "Kori Francis")](https://github.com/kfrancis)
11+
[![Toni Wenzel](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/twenzel.png "Toni Wenzel")](https://github.com/twenzel)
12+
[![Giorgi Dalakishvili](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/Giorgi.png "Giorgi Dalakishvili")](https://github.com/Giorgi)
13+
[![Uno Platform](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/unoplatform.png "Uno Platform")](https://github.com/unoplatform)
14+
[![Dan Siegel](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/dansiegel.png "Dan Siegel")](https://github.com/dansiegel)
15+
[![Reuben Swartz](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/rbnswartz.png "Reuben Swartz")](https://github.com/rbnswartz)
16+
[![Jacob Foshee](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/jfoshee.png "Jacob Foshee")](https://github.com/jfoshee)
17+
[![](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/Mrxx99.png "")](https://github.com/Mrxx99)
18+
[![Eric Johnson](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/eajhnsn1.png "Eric Johnson")](https://github.com/eajhnsn1)
19+
[![Ix Technologies B.V.](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/IxTechnologies.png "Ix Technologies B.V.")](https://github.com/IxTechnologies)
20+
[![David JENNI](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/davidjenni.png "David JENNI")](https://github.com/davidjenni)
21+
[![Jonathan ](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/Jonathan-Hickey.png "Jonathan ")](https://github.com/Jonathan-Hickey)
22+
[![Oleg Kyrylchuk](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/okyrylchuk.png "Oleg Kyrylchuk")](https://github.com/okyrylchuk)
23+
[![Charley Wu](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/akunzai.png "Charley Wu")](https://github.com/akunzai)
24+
[![Jakob Tikjøb Andersen](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/jakobt.png "Jakob Tikjøb Andersen")](https://github.com/jakobt)
25+
[![Seann Alexander](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/seanalexander.png "Seann Alexander")](https://github.com/seanalexander)
26+
[![Tino Hager](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/tinohager.png "Tino Hager")](https://github.com/tinohager)
27+
[![Mark Seemann](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/ploeh.png "Mark Seemann")](https://github.com/ploeh)
28+
[![Ken Bonny](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/KenBonny.png "Ken Bonny")](https://github.com/KenBonny)
29+
[![Simon Cropp](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/SimonCropp.png "Simon Cropp")](https://github.com/SimonCropp)
30+
[![agileworks-eu](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/agileworks-eu.png "agileworks-eu")](https://github.com/agileworks-eu)
31+
[![sorahex](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/sorahex.png "sorahex")](https://github.com/sorahex)
32+
[![Zheyu Shen](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/arsdragonfly.png "Zheyu Shen")](https://github.com/arsdragonfly)
33+
[![Vezel](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/vezel-dev.png "Vezel")](https://github.com/vezel-dev)
34+
[![ChilliCream](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/ChilliCream.png "ChilliCream")](https://github.com/ChilliCream)
35+
[![4OTC](https://raw.githubusercontent.com/devlooped/sponsors/main/.github/avatars/4OTC.png "4OTC")](https://github.com/4OTC)
936

0 commit comments

Comments
 (0)