Skip to content
This repository was archived by the owner on Jun 30, 2023. It is now read-only.

Commit d1a20f3

Browse files
authored
Bump files with dotnet-file sync
# devlooped/oss - Add techdebt label to excludes from release config devlooped/oss@1afd173 - Ignore docs merges too devlooped/oss@055a8b7 - Add attribution to upstream and note on regex devlooped/oss@c161088 - Don't fail on background workflows devlooped/oss@f08c3f2 - Don't fail sponsors tagging, since it's optional devlooped/oss@8990ebb - Fix initial test run without filter devlooped/oss@9a1b075 - Fix mapping sources devlooped/oss@b2fa09b - Don't collect logs anymore devlooped/oss@6bd81a3 - Don't run build when changing docs devlooped/oss@db76fb9 - 🔨 Populate RepositoryBranch in CI w/MSBuild devlooped/oss@55c0b32 - Don't fail the build if sleet finds no packages to push devlooped/oss@6928fc7 - Allow manually running builds devlooped/oss@fc5889d - Automatically retry failed tests up to 5 times devlooped/oss@8bc16a7 - Ensure GNU grep is used on macOS devlooped/oss@964caa3 - Reuse test with retries definition by using a composite action devlooped/oss@3b9f317 - Now that .NET6 is LTS, ensure it's installed devlooped/oss@7ebebbd - Switch to windows-latest agent which is now .NET6 devlooped/oss@445239b - Ignore nuget-provided files for formatting devlooped/oss@bbf637b - Ignore changes to readme.md as build trigger devlooped/oss@e19ed32 - Move format check for last devlooped/oss@7db501b - Make build matrix configurable per-repo devlooped/oss@391da5e - Rename matrix lookup job and steps devlooped/oss@cf8e339 - Switch to newer syntax for output variables devlooped/oss@9dc1ae2 - Automatically build from dev/* branches too devlooped/oss@6d3dd85 - Drop net6 forced install, it's built-in all agents now devlooped/oss@34c1bf6 - Drop net6 setup on prior to dotnet format devlooped/oss@4b31891 - Remove limitation on matrix os for sleet publishing devlooped/oss@7e3288c - Use a better CI version number devlooped/oss@1ec6385 - Ignore xUnit1013 so records can be used as test classes devlooped/oss@369cd2b - Add specific skip rules for tests devlooped/oss@448cf45 - Ignore TestResults folders devlooped/oss@a9f9d3f - Ignore azurite files devlooped/oss@829faad - Add azurite hidden folders too devlooped/oss@978c71c - Ignore *.log files devlooped/oss@c78868e - Use full name as Author, since Owner is already kzu devlooped/oss@0fc6e0e - Only include/pack icon.png if it exists in the default location devlooped/oss@ae442c0 - Preserve transitively copied content in VS devlooped/oss@52d6c40 - Generate API documentation for non-tests projects by default devlooped/oss@32213f2 - Add nuget.org as first restore source, for convenience devlooped/oss@3f294a1 - Automatically set/include icon.png and readme.md devlooped/oss@e260665 - Global tools should run on whatever latest runtime is installed. devlooped/oss@b65c8f1 - Ensure MSBuild tooling can access package artifacts always via PKG_[PackageId] devlooped/oss@cc6922f - Add CI as a project property devlooped/oss@2fea462 - Switch to old nuget.config for package sources devlooped/oss@c6f74ce - Enable C# compiler strict mode by default devlooped/oss@ef8e7fa - If PackAsTool=true, default IsPackable=true, for obvious reasons devlooped/oss@fde1f6f - If PackFolder is specified, assume IsPackable=true devlooped/oss@b0249cf - Make src-level readme visible for easier editing devlooped/oss@bfe0f2a - Add RepositoryBranch as a ThisAssembly.Project property devlooped/oss@83d7378 - Add RepositoryRoot property from source control information devlooped/oss@f9763d3 - Add RepositoryUrl as project property, if available devlooped/oss@4f57ffe - Remove DumpItems task. Easily replaceable with MSBuild.DumpItems devlooped/oss@024f733 - Remove the source link in the package description devlooped/oss@b9fb0a7 - Since dependabot doesn't consume API requests, do it more frequently devlooped/oss@4f070a4 - Fix incremental build issue with package files and doc file devlooped/oss@96b6773 - Improve default rendering of header icon devlooped/oss@9db26e2 - Allow manually running changelog and dotnet-file workflows devlooped/oss@084aa7c - Move changelog config to .github, switch to gem devlooped/oss@b7ce2be - Ensure ruby v3 is installed for changelog generation devlooped/oss@be8f625 - Use BOT_ defaults consistently devlooped/oss@98919f7 - Use simple bash variable expansion devlooped/oss@acedd1d - Ensure checkout before defaults devlooped/oss@721ee85 - Rework to pass secrets explicitly devlooped/oss@15e9486 - Update to public bot defaults action devlooped/oss@b9671b9 - Add fallback GITHUB_TOKEN to bot defaults devlooped/oss@5406d90 - Remove duplicate community files and unused stuff devlooped/oss@a4b66eb - Remove GNU grep step from publish since it runs ubuntu devlooped/oss@0e5a33c - Drop net6 setup on publish too devlooped/oss@d302256 - Automatically label dotnet-file bump and auto-delete branch devlooped/oss@eeaeb55 - Add icon prefix to match dependabot devlooped/oss@2a39a42 - Add rate limiting fix devlooped/oss@ef47d78 - Use bot account for sync commit author devlooped/oss@1d3a2f4 - Ensure both author and committer match devlooped/oss@d94ddb1 - Resolve includes after file sync devlooped/oss@8f45cf2 - By default don't validate includes devlooped/oss@aed791a - Ignore errors creating the PR devlooped/oss@b97b8f1 # clarius/pages
1 parent d806768 commit d1a20f3

23 files changed

+644
-396
lines changed

.editorconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,11 @@ csharp_new_line_before_catch = true
8787
csharp_new_line_before_finally = true
8888
csharp_new_line_before_members_in_object_initializers = true
8989
csharp_new_line_before_members_in_anonymous_types = true
90+
91+
# Test settings
92+
[**/*Tests*/*{.cs,.vb}]
93+
# xUnit1013: Public method should be marked as test. Allows using records as test classes
94+
dotnet_diagnostic.xUnit1013.severity = none
95+
96+
# VSTHRD200: Use "Async" suffix for async methods
97+
dotnet_diagnostic.VSTHRD200.severity = none

.github/dependabot.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,4 @@ updates:
66
- package-ecosystem: nuget
77
directory: /
88
schedule:
9-
interval: weekly
10-
ignore:
11-
- dependency-name: "Microsoft.CodeAnalysis.Common"
12-
- dependency-name: "Microsoft.CodeAnalysis.CSharp"
13-
- dependency-name: "Microsoft.CodeAnalysis.CSharp.Features"
14-
- dependency-name: "Microsoft.CodeAnalysis.CSharp.Workspaces"
15-
- dependency-name: "Microsoft.CodeAnalysis.VisualBasic"
16-
- dependency-name: "Microsoft.Bcl.AsyncInterfaces"
17-
- dependency-name: "Microsoft.Bcl.HashCode"
9+
interval: daily

.github/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
changelog:
2+
exclude:
3+
labels:
4+
- bydesign
5+
- dependencies
6+
- duplicate
7+
- question
8+
- invalid
9+
- wontfix
10+
- need info
11+
- docs
12+
- techdebt
13+
authors:
14+
- devlooped-bot
15+
- dependabot
16+
- github-actions
17+
categories:
18+
- title: ✨ Implemented enhancements
19+
labels:
20+
- enhancement
21+
- title: 🐛 Fixed bugs
22+
labels:
23+
- bug
24+
- title: 📝 Documentation updates
25+
labels:
26+
- docs
27+
- title: 🔨 Other
28+
labels:
29+
- '*'
30+
exclude:
31+
labels:
32+
- dependencies

.github/workflows/build.yml

Lines changed: 38 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -5,40 +5,49 @@ name: build
55
on:
66
workflow_dispatch:
77
push:
8-
branches: [ main, dev, 'feature/*', 'rel/*' ]
8+
branches: [ main, dev, 'dev/*', 'feature/*', 'rel/*' ]
9+
paths-ignore:
10+
- changelog.md
11+
- code-of-conduct.md
12+
- security.md
13+
- support.md
14+
- readme.md
915
pull_request:
1016
types: [opened, synchronize, reopened]
1117

1218
env:
1319
DOTNET_NOLOGO: true
20+
VersionPrefix: 42.42.${{ github.run_number }}
21+
VersionLabel: ${{ github.ref }}
1422

1523
defaults:
1624
run:
1725
shell: bash
1826

1927
jobs:
20-
dotnet-format:
28+
os-matrix:
2129
runs-on: ubuntu-latest
30+
outputs:
31+
matrix: ${{ steps.lookup.outputs.matrix }}
2232
steps:
2333
- name: 🤘 checkout
2434
uses: actions/checkout@v2
25-
with:
26-
submodules: recursive
27-
fetch-depth: 0
28-
29-
- name: ✓ ensure format
35+
36+
- name: 🔎 lookup
37+
id: lookup
38+
shell: pwsh
3039
run: |
31-
dotnet tool update -g dotnet-format --version 5.0.*
32-
dotnet restore
33-
dotnet format --check -v:diag
40+
$path = './.github/workflows/os-matrix.json'
41+
$os = if (test-path $path) { cat $path } else { '["ubuntu-latest"]' }
42+
echo "matrix=$os" >> $env:GITHUB_OUTPUT
3443
3544
build:
45+
needs: os-matrix
3646
name: build-${{ matrix.os }}
37-
needs: dotnet-format
3847
runs-on: ${{ matrix.os }}
3948
strategy:
4049
matrix:
41-
os: [ubuntu-latest, windows-latest, macOS-latest]
50+
os: ${{ fromJSON(needs.os-matrix.outputs.matrix) }}
4251
steps:
4352
- name: 🤘 checkout
4453
uses: actions/checkout@v2
@@ -47,102 +56,38 @@ jobs:
4756
fetch-depth: 0
4857

4958
- name: 🙏 build
50-
run: dotnet build -m:1 -bl:build.binlog -p:VersionLabel="$GITHUB_REF.$GITHUB_RUN_NUMBER" -p:RepositoryBranch=${GITHUB_REF#refs/*/}
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
5166
5267
- name: 🧪 test
53-
run: dotnet test --no-build -m:1 --blame-hang --blame-hang-timeout 5m -d $GITHUB_WORKSPACE/logs/${{ matrix.os }}.txt -r $GITHUB_WORKSPACE/logs
68+
uses: ./.github/workflows/test
5469

5570
- name: 📦 pack
56-
run: dotnet pack -m:1 -bl:pack.binlog -p:VersionLabel="$GITHUB_REF.$GITHUB_RUN_NUMBER" -p:RepositoryBranch=${GITHUB_REF#refs/*/}
71+
run: dotnet pack -m:1
5772

58-
- name: 🔼 packages
59-
uses: actions/upload-artifact@v2
60-
with:
61-
name: bin
62-
path: bin/*.nupkg
63-
6473
# Only push CI package to sleet feed if building on ubuntu (fastest)
6574
- name: 🚀 sleet
6675
env:
6776
SLEET_CONNECTION: ${{ secrets.SLEET_CONNECTION }}
68-
if: matrix.os == 'ubuntu-latest' && env.SLEET_CONNECTION != ''
77+
if: env.SLEET_CONNECTION != ''
6978
run: |
7079
dotnet tool install -g --version 4.0.18 sleet
7180
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"
7281
73-
acceptance:
74-
name: acceptance-${{ matrix.os }}
75-
runs-on: ${{ matrix.os }}
82+
dotnet-format:
83+
runs-on: ubuntu-latest
7684
needs: build
77-
strategy:
78-
matrix:
79-
os: [ubuntu-latest, windows-latest, macOS-latest]
8085
steps:
8186
- name: 🤘 checkout
8287
uses: actions/checkout@v2
88+
with:
89+
submodules: recursive
90+
fetch-depth: 0
8391

84-
- name: 🔽 packages
85-
uses: actions/download-artifact@v2
86-
with:
87-
name: bin
88-
path: bin
89-
90-
- name: 🧪 test
91-
run: dotnet test -p:VersionLabel="$GITHUB_REF.$GITHUB_RUN_NUMBER"
92-
working-directory: src/Acceptance
93-
94-
preview:
95-
defaults:
96-
run:
97-
shell: pwsh
98-
needs: dotnet-format
99-
runs-on: windows-latest
100-
101-
steps:
102-
- name: 🤘 checkout
103-
uses: actions/checkout@v2
104-
105-
# > VS Preview
106-
- name: 🔽 dotnet-vs
107-
run: dotnet tool update -g dotnet-vs
108-
- name: 🔽 vs preview
109-
run: vs install preview --quiet +Microsoft.VisualStudio.Component.ManagedDesktop.Core +Microsoft.NetCore.Component.DevelopmentTools
110-
- name: ≥ msbuild
111-
run: echo "$(vs where preview --prop=InstallationPath)\MSBuild\Current\Bin" >> $env:GITHUB_PATH
112-
# < VS Preview
113-
114-
- name: ⚙ curl
115-
run: |
116-
iwr -useb get.scoop.sh | iex
117-
scoop install curl
118-
- name: 🔍 status for PR
119-
if: ${{ github.event.pull_request.head.sha }}
120-
run: echo "STATUS_SHA=${{ github.event.pull_request.head.sha }}" >> $env:GITHUB_ENV
121-
122-
- name: 🔍 status for branch
123-
if: ${{ !github.event.pull_request.head.sha }}
124-
run: echo "STATUS_SHA=$($env:GITHUB_SHA)" >> $env:GITHUB_ENV
125-
126-
- name: ⌛ wait on build
127-
env:
128-
CHECK: build-windows-latest
129-
SHA: ${{ env.STATUS_SHA }}
130-
TOKEN: ${{ secrets.GITHUB_TOKEN }}
131-
run: ./.github/workflows/wait-status.ps1
132-
133-
- name: ⌛ wait on acceptance
134-
env:
135-
CHECK: acceptance-windows-latest
136-
SHA: ${{ env.STATUS_SHA }}
137-
TOKEN: ${{ secrets.GITHUB_TOKEN }}
138-
run: ./.github/workflows/wait-status.ps1
139-
140-
- name: 🔽 packages
141-
uses: actions/download-artifact@v2
142-
with:
143-
name: bin
144-
path: bin
145-
146-
- name: 🧪 test
147-
run: msbuild -r -t:build,test -p:TargetFramework=net472 -p:VersionLabel="$($env:GITHUB_REF).$($env:GITHUB_RUN_NUMBER)"
148-
working-directory: src/Acceptance
92+
- name: ✓ ensure format
93+
run: dotnet format --verify-no-changes -v:diag --exclude ~/.nuget
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
usernames-as-github-logins=true
2-
header-label=
32
issues_wo_labels=true
43
pr_wo_labels=true
5-
exclude-labels=dependencies,duplicate,question,invalid,wontfix
4+
exclude-labels=bydesign,dependencies,duplicate,question,invalid,wontfix,need info,docs
65
enhancement-label=:sparkles: Implemented enhancements:
76
bugs-label=:bug: Fixed bugs:
87
issues-label=:hammer: Other:
98
pr-label=:twisted_rightwards_arrows: Merged:
9+
unreleased=false

.github/workflows/changelog.yml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,39 @@
11
name: changelog
22
on:
3+
workflow_dispatch:
34
release:
45
types: [released]
56

6-
env:
7-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
8-
97
jobs:
108
changelog:
119
runs-on: ubuntu-latest
1210
steps:
13-
- name: 🔍 GH_TOKEN
14-
if: env.GH_TOKEN == ''
15-
env:
16-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17-
run: echo "GH_TOKEN=${GITHUB_TOKEN}" >> $GITHUB_ENV
18-
11+
- name: 🤖 defaults
12+
uses: devlooped/actions-bot@v1
13+
with:
14+
name: ${{ secrets.BOT_NAME }}
15+
email: ${{ secrets.BOT_EMAIL }}
16+
gh_token: ${{ secrets.GH_TOKEN }}
17+
github_token: ${{ secrets.GITHUB_TOKEN }}
18+
1919
- name: 🤘 checkout
2020
uses: actions/checkout@v2
2121
with:
2222
fetch-depth: 0
2323
ref: main
2424
token: ${{ env.GH_TOKEN }}
25+
26+
- name: ⚙ ruby
27+
uses: ruby/setup-ruby@v1
28+
with:
29+
ruby-version: 3.0.3
2530

2631
- name: ⚙ changelog
27-
uses: faberNovel/github-changelog-generator-action@master
28-
with:
29-
options: --token ${{ secrets.GITHUB_TOKEN }} --o changelog.md
32+
run: |
33+
gem install github_changelog_generator
34+
github_changelog_generator --user ${GITHUB_REPOSITORY%/*} --project ${GITHUB_REPOSITORY##*/} --token $GH_TOKEN --o changelog.md --config-file .github/workflows/changelog.config
3035
3136
- name: 🚀 changelog
3237
run: |
33-
git config --local user.name github-actions
34-
git config --local user.email github-actions@github.com
3538
git add changelog.md
36-
(git commit -m "🖉 Update changelog with ${GITHUB_REF#refs/*/}" && git push) || echo "Done"
39+
(git commit -m "🖉 Update changelog with ${GITHUB_REF#refs/*/}" && git push) || echo "Done"

0 commit comments

Comments
 (0)