Skip to content

Commit

Permalink
⬆️ Bump files with dotnet-file sync
Browse files Browse the repository at this point in the history
# devlooped/oss

- Use custom stale action to exempt authors devlooped/oss@03b7d53
- Add techdebt label to excludes from release config devlooped/oss@1afd173
- Skip discussion issues when generating changelog devlooped/oss@08d83cb
- Add attribution to upstream and note on regex devlooped/oss@c161088
- Update includes.yml to include top-level .md devlooped/oss@d152e74
- 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
- Ignore xUnit1013 so records can be used as test classes devlooped/oss@369cd2b
- Update to checkout@v4 devlooped/oss@5fb1723
- Add specific skip rules for tests devlooped/oss@448cf45
- 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
- Update .editorconfig devlooped/oss@2981836
- By default don't validate includes devlooped/oss@aed791a
- Ignore test analyzer rules recursively. devlooped/oss@fd5b554
- Ignore errors creating the PR devlooped/oss@b97b8f1
- Ignore primary ctor parameter in tests, usually used for testoutput helper devlooped/oss@c779d3d
- Don't fail on background workflows devlooped/oss@f08c3f2
- Ignore sponsorlink sources in formatting devlooped/oss@f571a42
- SponsorLink code should be checked as regular code devlooped/oss@e81ab75
- Update dotnet-file.yml with fix to create pull request action devlooped/oss@11a331d
- Add trx logger by default to CLI builds devlooped/oss@a75b141
- Remove -l:trx since it's just for dotnet test, not build devlooped/oss@0f7f7f7
- Don't add random wait on manual dotnet-file runs devlooped/oss@7afe350
- 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
- 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
- Add CI as a project property devlooped/oss@2fea462
- Remove GNU grep step from publish since it runs ubuntu devlooped/oss@0e5a33c
- Switch to old nuget.config for package sources devlooped/oss@c6f74ce
- Enable C# compiler strict mode by default devlooped/oss@ef8e7fa
- Drop net6 setup on publish too devlooped/oss@d302256
- Only override VersionPrefix if it has no value devlooped/oss@28a27ba
- Allow extending build with local-only files devlooped/oss@6ae80a1
- Honor the PackReadme=false property devlooped/oss@1bf1eac
- NoTargets/Traversal SDKs now support central package versions too devlooped/oss@afca922
- Enable floating versions for central packages by default devlooped/oss@b1d14c6
- 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
- Add static usings to allow unprefixed ThrowXxxx devlooped/oss@6dfe21f
- Add compatibility for non-SDK projects without InitializeSourceControlInformation target devlooped/oss@6e96c59
- Set Version from VersionLabel if it's a refs/tags/ devlooped/oss@57653a2
- Cleanup build and publish to use VersionLabel devlooped/oss@14deaea
- Improve default value for GenerateDocumentationFile devlooped/oss@b76de49
- Add RepositoryBranch as a ThisAssembly.Project property devlooped/oss@83d7378
- Since dependabot doesn't consume API requests, do it more frequently devlooped/oss@4f070a4
- Add RepositoryRoot property from source control information devlooped/oss@f9763d3
- Add RepositoryUrl as project property, if available devlooped/oss@4f57ffe
- Update publish.yml to include prereleased publish devlooped/oss@d793e7a
- Automatically use the new terminal logger if possible devlooped/oss@27a5c9a
- Remove DumpItems task. Easily replaceable with MSBuild.DumpItems devlooped/oss@024f733
- Don't attempt to push to nuget.org without a key devlooped/oss@d11c4dc
- Push also to sleet if configured devlooped/oss@40ee833
- Simplify testing by switching to dotnet-retest devlooped/oss@b5bb972
- Remove the source link in the package description devlooped/oss@b9fb0a7
- Ignore azurite files devlooped/oss@829faad
- Add azurite hidden folders too devlooped/oss@978c71c
- 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
- Ignore *.log files devlooped/oss@c78868e
- Fix dependabot group for tests devlooped/oss@49661db
- 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
- Fix incremental build issue with package files and doc file devlooped/oss@96b6773
- When using EnableRexCodeGenerator, this should Just Work devlooped/oss@c7235d7
- Enable VSCode/Razor compat when using resxcode generator devlooped/oss@1514d15
- Append missing trailing path to directory for icon/readme devlooped/oss@5cec43d
- 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
- Update .gitignore with JetBrains private folder devlooped/oss@9dff0bd
- Add common sponsors metadata to assemblies devlooped/oss@0789bf0
- Update assembly metadata format for Funding.GitHub devlooped/oss@5801de0
- Ignore app root folder too devlooped/oss@b87a8a7
- SponsorLink metadata will be opt-in only by analyzer projects devlooped/oss@c618ea8
- Switch to newer syntax for output variables devlooped/oss@9dc1ae2
- Automatically build from dev/* branches too devlooped/oss@6d3dd85
- 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
- Only ignore App folder directly under the root devlooped/oss@02811fa
- 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
- Parallelize format to speed up build devlooped/oss@13d67e2
- Fix typo in targets devlooped/oss@33a20db
- Allow choosing build configuration on dispatch devlooped/oss@fef4635
- Remove shared community files from ignores devlooped/oss@65f89e0
- We don't push just from ubuntu anymore devlooped/oss@7ec9101

# devlooped/.github

- Rename community files devlooped/.github@80e81d2
- Update readme.md devlooped/.github@b53e2d3
- Update sponsorlink.jwt without the older 'pub' claim devlooped/.github@51e44c3
- Fix missing bracket in link devlooped/.github@4d38bd1

# devlooped/json

- Auto-create object hierarchies and arrays devlooped/json@af6b686
  • Loading branch information
kzu authored Aug 30, 2024
1 parent 036cbac commit a28f6d4
Show file tree
Hide file tree
Showing 30 changed files with 928 additions and 520 deletions.
19 changes: 18 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ dotnet_style_require_accessibility_modifiers = omit_if_default:error
dotnet_diagnostic.IDE0040.severity = error

[*.cs]
# Top-level files are definitely OK
csharp_using_directive_placement = outside_namespace:silent
csharp_style_namespace_declarations = block_scoped:silent
csharp_prefer_simple_using_statement = true:suggestion
csharp_prefer_braces = true:silent

# Prefer "var" everywhere
csharp_style_var_for_built_in_types = true:suggestion
csharp_style_var_when_type_is_apparent = true:suggestion
Expand Down Expand Up @@ -88,5 +94,16 @@ csharp_new_line_before_finally = true
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_members_in_anonymous_types = true

# xUnit1013: Public method should be marked as test
# Test settings
[**/*Tests*/**{.cs,.vb}]
# xUnit1013: Public method should be marked as test. Allows using records as test classes
dotnet_diagnostic.xUnit1013.severity = none

# CS9113: Parameter is unread (usually, ITestOutputHelper)
dotnet_diagnostic.CS9113.severity = none

# Default severity for analyzer diagnostics with category 'Style'
dotnet_analyzer_diagnostic.category-Style.severity = none

# VSTHRD200: Use "Async" suffix for async methods
dotnet_diagnostic.VSTHRD200.severity = none
50 changes: 0 additions & 50 deletions .github/ISSUE_TEMPLATE/bug.md

This file was deleted.

7 changes: 7 additions & 0 deletions .github/code_of_conduct.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Code of Conduct

This project has adopted the code of conduct defined by the
[Contributor Covenant](https://www.contributor-covenant.org/) to
clarify expected behavior in our community.

For more information, see the [.NET Foundation Code of Conduct](https://dotnetfoundation.org/code-of-conduct).
35 changes: 35 additions & 0 deletions .github/contributing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Contributing

You can contribute to the project with issues and PRs.
Simply filing issues for problems you encounter is a great way to contribute. Contributing implementations is greatly appreciated.

## Before you file a bug...
* Is this a question, or are you looking for help? Ask it in the project's **Discussions** tab instead, if available.

* 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._
* 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._

## Before you submit a PR...

* Did you ensure there is a corresponding issue labelled as 🟢 help wanted?
If not, please open one to start the discussion.
* Does the code follow existing coding styles? (spaces, comments, no regions, etc.)?
We enforce the basic styles by running `dotnet format` on the repository root.
You can do the same before submitting a PR to speed up the process.
* Did you write unit tests?
Typically required if there are other unit tests for existing or related code.

## Looking for something to work on?

Look at the repo issues labelled as 🟢 help wanted and 🟣 good first issue to find
something to contribute!

# Contributor License Agreement

You must sign the [Contribution License Agreement (CLA)](https://cla-assistant.io/devlooped/) before your PR will be merged.
This is a one-time requirement for projects in the Devlooped organization.
You can read more about [Contribution License Agreements (CLA)](http://en.wikipedia.org/wiki/Contributor_License_Agreement) on Wikipedia.

You don't have to do this up-front. You can simply clone, fork, and submit your pull-request as usual.
When your pull-request is created, it is classified by a CLA bot, which will let
you know if signing is pending.
33 changes: 32 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,35 @@ updates:
- package-ecosystem: nuget
directory: /
schedule:
interval: weekly
interval: daily
groups:
Azure:
patterns:
- "Azure*"
- "Microsoft.Azure*"
Identity:
patterns:
- "System.IdentityModel*"
- "Microsoft.IdentityModel*"
System:
patterns:
- "System*"
exclude-patterns:
- "System.IdentityModel*"
Extensions:
patterns:
- "Microsoft.Extensions*"
Web:
patterns:
- "Microsoft.AspNetCore*"
Tests:
patterns:
- "Microsoft.NET.Test*"
- "xunit*"
- "coverlet*"
ThisAssembly:
patterns:
- "ThisAssembly*"
ProtoBuf:
patterns:
- "protobuf-*"
32 changes: 32 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
changelog:
exclude:
labels:
- bydesign
- dependencies
- duplicate
- question
- invalid
- wontfix
- need info
- docs
- techdebt
authors:
- devlooped-bot
- dependabot
- github-actions
categories:
- title: ✨ Implemented enhancements
labels:
- enhancement
- title: 🐛 Fixed bugs
labels:
- bug
- title: 📝 Documentation updates
labels:
- docs
- title: 🔨 Other
labels:
- '*'
exclude:
labels:
- dependencies
File renamed without changes.
File renamed without changes.
109 changes: 54 additions & 55 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,100 +4,99 @@
name: build
on:
workflow_dispatch:
inputs:
configuration:
type: choice
description: Configuration
options:
- Release
- Debug
push:
branches: [ main, dev, 'feature/*', 'rel/*' ]
branches: [ main, dev, 'dev/*', 'feature/*', 'rel/*' ]
paths-ignore:
- changelog.md
- code-of-conduct.md
- security.md
- support.md
- readme.md
pull_request:
types: [opened, synchronize, reopened]

env:
DOTNET_NOLOGO: true
PackOnBuild: true
GeneratePackageOnBuild: true
VersionPrefix: 42.42.${{ github.run_number }}
VersionLabel: ${{ github.ref }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
MSBUILDTERMINALLOGGER: auto
Configuration: ${{ github.event.inputs.configuration || 'Release' }}

defaults:
run:
shell: bash

jobs:
dotnet-format:
os-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.lookup.outputs.matrix }}
steps:
- name: 🤘 checkout
uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 0

- name: ✓ ensure format
uses: actions/checkout@v4

- name: 🔎 lookup
id: lookup
shell: pwsh
run: |
dotnet tool update -g dotnet-format --version 5.0.*
dotnet restore
dotnet format --check -v:diag
$path = './.github/workflows/os-matrix.json'
$os = if (test-path $path) { cat $path } else { '["ubuntu-latest"]' }
echo "matrix=$os" >> $env:GITHUB_OUTPUT
build:
needs: os-matrix
name: build-${{ matrix.os }}
needs: dotnet-format
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
os: ${{ fromJSON(needs.os-matrix.outputs.matrix) }}
steps:
- name: 🤘 checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0

- name: 🙏 build
run: dotnet build -m:1 -p:VersionLabel="$GITHUB_REF.$GITHUB_RUN_NUMBER"

- name: ⚙ GNU grep
if: matrix.os == 'macOS-latest'
run: |
brew install grep
echo 'export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"' >> .bash_profile
run: dotnet build -m:1 -bl:build.binlog

- name: 🧪 test
shell: bash --noprofile --norc {0}
env:
LC_ALL: en_US.utf8
run: |
[ -f .bash_profile ] && source .bash_profile
counter=0
exitcode=0
reset="\e[0m"
warn="\e[0;33m"
while [ $counter -lt 6 ]
do
if [ $filter ]
then
echo -e "${warn}Retry $counter for $filter ${reset}"
fi
# run test and forward output also to a file in addition to stdout (tee command)
dotnet test --no-build -m:1 --blame-hang --blame-hang-timeout 5m --filter=$filter | tee ./output.log
# capture dotnet test exit status, different from tee
exitcode=${PIPESTATUS[0]}
if [ $exitcode == 0 ]
then
exit 0
fi
# cat output, get failed test names, join as DisplayName=TEST with |, remove trailing |.
filter=$(cat ./output.log | grep -o -P '(?<=\sFailed\s)\w*' | awk 'BEGIN { ORS="|" } { print("DisplayName=" $0) }' | grep -o -P '.*(?=\|$)')
((counter++))
done
exit $exitcode
dotnet tool update -g dotnet-retest
dotnet retest -- --no-build
- name: 📦 pack
run: dotnet pack -m:1 -p:VersionLabel="$GITHUB_REF.$GITHUB_RUN_NUMBER"
- name: 🐛 logs
uses: actions/upload-artifact@v3
if: runner.debug && always()
with:
name: logs
path: '*.binlog'

# Only push CI package to sleet feed if building on ubuntu (fastest)
- name: 🚀 sleet
env:
SLEET_CONNECTION: ${{ secrets.SLEET_CONNECTION }}
if: matrix.os == 'ubuntu-latest' && env.SLEET_CONNECTION != ''
if: env.SLEET_CONNECTION != ''
run: |
dotnet tool install -g --version 4.0.18 sleet
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"
dotnet-format:
runs-on: ubuntu-latest
steps:
- name: 🤘 checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0

- name: ✓ ensure format
run: |
dotnet format whitespace --verify-no-changes -v:diag --exclude ~/.nuget
dotnet format style --verify-no-changes -v:diag --exclude ~/.nuget
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
usernames-as-github-logins=true
issues_wo_labels=true
pr_wo_labels=true
exclude-labels=bydesign,dependencies,duplicate,question,invalid,wontfix,need info
exclude-labels=bydesign,dependencies,duplicate,discussion,question,invalid,wontfix,need info,docs
enhancement-label=:sparkles: Implemented enhancements:
bugs-label=:bug: Fixed bugs:
issues-label=:hammer: Other:
Expand Down
Loading

0 comments on commit a28f6d4

Please sign in to comment.