Skip to content

Commit 055d382

Browse files
committed
⬆️ 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 - Fix action repo name devlooped/oss@ac753b7 - 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 - Ignore xUnit1013 so records can be used as test classes devlooped/oss@369cd2b - Since dependabot doesn't consume API requests, do it more frequently devlooped/oss@4f070a4 - Add specific skip rules for tests devlooped/oss@448cf45 - 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 - Update .editorconfig devlooped/oss@2981836 - Ignore test analyzer rules recursively. devlooped/oss@fd5b554 - 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 - Don't run analyzers/codefixers in format devlooped/oss@543f7da - 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 - 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 - Don't fail on background workflows devlooped/oss@f08c3f2 - Remove GNU grep step from publish since it runs ubuntu devlooped/oss@0e5a33c - Drop net6 setup on publish too devlooped/oss@d302256 - Ignore azurite files devlooped/oss@829faad - Add azurite hidden folders too devlooped/oss@978c71c - Ignore *.log files devlooped/oss@c78868e - Update .gitignore with JetBrains private folder devlooped/oss@9dff0bd - Ignore app root folder too devlooped/oss@b87a8a7 - 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 - Only override VersionPrefix if it has no value devlooped/oss@28a27ba - Allow extending build with local-only files devlooped/oss@6ae80a1 - 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 - Fix incremental build issue with package files and doc file devlooped/oss@96b6773 # devlooped/.github - Keep only officially supported community files devlooped/.github@c97cdeb - Add contributing guidelines devlooped/.github@1dc5908
1 parent 3ec8d79 commit 055d382

27 files changed

Lines changed: 561 additions & 497 deletions

.editorconfig

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ dotnet_style_require_accessibility_modifiers = omit_if_default:error
5858
dotnet_diagnostic.IDE0040.severity = error
5959

6060
[*.cs]
61+
# Top-level files are definitely OK
62+
csharp_using_directive_placement = outside_namespace:silent
63+
csharp_style_namespace_declarations = block_scoped:silent
64+
csharp_prefer_simple_using_statement = true:suggestion
65+
csharp_prefer_braces = true:silent
66+
6167
# Prefer "var" everywhere
6268
csharp_style_var_for_built_in_types = true:suggestion
6369
csharp_style_var_when_type_is_apparent = true:suggestion
@@ -88,5 +94,13 @@ csharp_new_line_before_finally = true
8894
csharp_new_line_before_members_in_object_initializers = true
8995
csharp_new_line_before_members_in_anonymous_types = true
9096

91-
# xUnit1013: Public method should be marked as test
97+
# Test settings
98+
[**/*Tests*/**{.cs,.vb}]
99+
# xUnit1013: Public method should be marked as test. Allows using records as test classes
92100
dotnet_diagnostic.xUnit1013.severity = none
101+
102+
# Default severity for analyzer diagnostics with category 'Style'
103+
dotnet_analyzer_diagnostic.category-Style.severity = none
104+
105+
# VSTHRD200: Use "Async" suffix for async methods
106+
dotnet_diagnostic.VSTHRD200.severity = none
File renamed without changes.

.github/CONTRIBUTING.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Contributing
2+
3+
You can contribute to the project with issues and PRs.
4+
Simply filing issues for problems you encounter is a great way to contribute. Contributing implementations is greatly appreciated.
5+
6+
## Before you file a bug...
7+
* Is this a question, or are you looking for help? Ask it in the project's **Discussions** tab instead, if available.
8+
9+
* Did you search the issues list to see if someone already reported it? _When looking for duplicates, make sure to look through open **and** closed issues._
10+
* Did you create a simple repro for the problem? _We won't look at your bug until you provide a repro project or complete repro steps._
11+
12+
## Before you submit a PR...
13+
14+
* Did you ensure there is a corresponding issue labelled as 🟢 help wanted?
15+
If not, please open one to start the discussion.
16+
* Does the code follow existing coding styles? (spaces, comments, no regions, etc.)?
17+
We enforce the basic styles by running `dotnet format` on the repository root.
18+
You can do the same before submitting a PR to speed up the process.
19+
* Did you write unit tests?
20+
Typically required if there are other unit tests for existing or related code.
21+
22+
## Looking for something to work on?
23+
24+
Look at the repo issues labelled as 🟢 help wanted and 🟣 good first issue to find
25+
something to contribute!
26+
27+
# Contributor License Agreement
28+
29+
You must sign the [Contribution License Agreement (CLA)](https://cla-assistant.io/devlooped/) before your PR will be merged.
30+
This is a one-time requirement for projects in the Devlooped organization.
31+
You can read more about [Contribution License Agreements (CLA)](http://en.wikipedia.org/wiki/Contributor_License_Agreement) on Wikipedia.
32+
33+
You don't have to do this up-front. You can simply clone, fork, and submit your pull-request as usual.
34+
When your pull-request is created, it is classified by a CLA bot, which will let
35+
you know if signing is pending.

.github/ISSUE_TEMPLATE/bug.md

Lines changed: 0 additions & 50 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ updates:
66
- package-ecosystem: nuget
77
directory: /
88
schedule:
9-
interval: weekly
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: 35 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -5,65 +5,58 @@ name: build
55
on:
66
workflow_dispatch:
77
push:
8-
branches: [ main, dev, 'feature/*', 'rel/*' ]
8+
branches: [ main, dev, 'dev/*', 'feature/*', 'rel/*' ]
99
paths-ignore:
1010
- changelog.md
1111
- code-of-conduct.md
1212
- security.md
1313
- support.md
14+
- readme.md
1415
pull_request:
1516
types: [opened, synchronize, reopened]
1617

1718
env:
1819
DOTNET_NOLOGO: true
20+
VersionPrefix: 42.42.${{ github.run_number }}
21+
VersionLabel: ${{ github.ref }}
1922

2023
defaults:
2124
run:
2225
shell: bash
2326

2427
jobs:
25-
dotnet-format:
28+
os-matrix:
2629
runs-on: ubuntu-latest
30+
outputs:
31+
matrix: ${{ steps.lookup.outputs.matrix }}
2732
steps:
2833
- name: 🤘 checkout
2934
uses: actions/checkout@v2
30-
with:
31-
submodules: recursive
32-
fetch-depth: 0
33-
34-
- name: ⚙ dotnet 6.0.x
35-
uses: actions/setup-dotnet@v1
36-
with:
37-
dotnet-version: 6.0.x
38-
include-prerelease: true
39-
40-
- name: ✓ ensure format
35+
36+
- name: 🔎 lookup
37+
id: lookup
38+
shell: pwsh
4139
run: |
42-
dotnet restore
43-
dotnet format --verify-no-changes -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
4443
4544
build:
45+
needs: os-matrix
4646
name: build-${{ matrix.os }}
47-
needs: dotnet-format
4847
runs-on: ${{ matrix.os }}
4948
strategy:
5049
matrix:
51-
os: [ubuntu-latest, windows-latest, macOS-latest]
50+
os: ${{ fromJSON(needs.os-matrix.outputs.matrix) }}
5251
steps:
5352
- name: 🤘 checkout
5453
uses: actions/checkout@v2
5554
with:
5655
submodules: recursive
5756
fetch-depth: 0
5857

59-
- name: ⚙ dotnet 6.0.x
60-
uses: actions/setup-dotnet@v1
61-
with:
62-
dotnet-version: 6.0.x
63-
include-prerelease: true
64-
6558
- name: 🙏 build
66-
run: dotnet build -m:1 -p:VersionLabel="$GITHUB_REF.$GITHUB_RUN_NUMBER"
59+
run: dotnet build -m:1
6760

6861
- name: ⚙ GNU grep
6962
if: matrix.os == 'macOS-latest'
@@ -72,43 +65,31 @@ jobs:
7265
echo 'export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"' >> .bash_profile
7366
7467
- name: 🧪 test
75-
shell: bash --noprofile --norc {0}
76-
env:
77-
LC_ALL: en_US.utf8
78-
run: |
79-
[ -f .bash_profile ] && source .bash_profile
80-
counter=0
81-
exitcode=0
82-
reset="\e[0m"
83-
warn="\e[0;33m"
84-
while [ $counter -lt 6 ]
85-
do
86-
if [ $filter ]
87-
then
88-
echo -e "${warn}Retry $counter for $filter ${reset}"
89-
fi
90-
# run test and forward output also to a file in addition to stdout (tee command)
91-
dotnet test --no-build -m:1 --blame-hang --blame-hang-timeout 5m --filter=$filter | tee ./output.log
92-
# capture dotnet test exit status, different from tee
93-
exitcode=${PIPESTATUS[0]}
94-
if [ $exitcode == 0 ]
95-
then
96-
exit 0
97-
fi
98-
# cat output, get failed test names, join as DisplayName=TEST with |, remove trailing |.
99-
filter=$(cat ./output.log | grep -o -P '(?<=\sFailed\s)\w*' | awk 'BEGIN { ORS="|" } { print("DisplayName=" $0) }' | grep -o -P '.*(?=\|$)')
100-
((counter++))
101-
done
102-
exit $exitcode
68+
uses: ./.github/workflows/test
10369

10470
- name: 📦 pack
105-
run: dotnet pack -m:1 -p:VersionLabel="$GITHUB_REF.$GITHUB_RUN_NUMBER"
71+
run: dotnet pack -m:1
10672

10773
# Only push CI package to sleet feed if building on ubuntu (fastest)
10874
- name: 🚀 sleet
10975
env:
11076
SLEET_CONNECTION: ${{ secrets.SLEET_CONNECTION }}
111-
if: matrix.os == 'ubuntu-latest' && env.SLEET_CONNECTION != ''
77+
if: env.SLEET_CONNECTION != ''
11278
run: |
11379
dotnet tool install -g --version 4.0.18 sleet
11480
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"
81+
82+
dotnet-format:
83+
runs-on: ubuntu-latest
84+
needs: build
85+
steps:
86+
- name: 🤘 checkout
87+
uses: actions/checkout@v2
88+
with:
89+
submodules: recursive
90+
fetch-depth: 0
91+
92+
- name: ✓ ensure format
93+
run: |
94+
dotnet format whitespace --verify-no-changes -v:diag --exclude ~/.nuget
95+
dotnet format style --verify-no-changes -v:diag --exclude ~/.nuget
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
4+
exclude-labels=bydesign,dependencies,duplicate,question,invalid,wontfix,need info,docs
55
enhancement-label=:sparkles: Implemented enhancements:
66
bugs-label=:bug: Fixed bugs:
77
issues-label=:hammer: Other:

0 commit comments

Comments
 (0)