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

Commit df3d98a

Browse files
authored
Bump files with dotnet-file sync
# devlooped/oss - Switch to built-in release notes generator devlooped/oss@2c80ab0 - Ignore docs merges too devlooped/oss@055a8b7 - Update combine prs default message devlooped/oss@74189b0 - 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 - 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 - 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 # devlooped/.github
1 parent d3a00b2 commit df3d98a

32 files changed

+639
-601
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
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/FUNDING.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.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 & 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: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
changelog:
2+
exclude:
3+
labels:
4+
- bydesign
5+
- dependencies
6+
- duplicate
7+
- question
8+
- invalid
9+
- wontfix
10+
- need info
11+
- docs
12+
authors:
13+
- devlooped-bot
14+
- dependabot
15+
- github-actions
16+
categories:
17+
- title: ✨ Implemented enhancements
18+
labels:
19+
- enhancement
20+
- title: 🐛 Fixed bugs
21+
labels:
22+
- bug
23+
- title: 🔨 Other
24+
labels:
25+
- '*'

.github/workflows/build.yml

Lines changed: 35 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ 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

@@ -17,28 +23,29 @@ defaults:
1723
shell: bash
1824

1925
jobs:
20-
dotnet-format:
26+
os-matrix:
2127
runs-on: ubuntu-latest
28+
outputs:
29+
matrix: ${{ steps.lookup.outputs.matrix }}
2230
steps:
2331
- name: 🤘 checkout
2432
uses: actions/checkout@v2
25-
with:
26-
submodules: recursive
27-
fetch-depth: 0
28-
29-
- name: ✓ ensure format
33+
34+
- name: 🔎 lookup
35+
id: lookup
36+
shell: pwsh
3037
run: |
31-
dotnet tool update -g dotnet-format --version 5.0.*
32-
dotnet restore
33-
dotnet format --check -v:diag
38+
$path = './.github/workflows/os-matrix.json'
39+
$os = if (test-path $path) { cat $path } else { '["ubuntu-latest"]' }
40+
echo "matrix=$os" >> $env:GITHUB_OUTPUT
3441
3542
build:
43+
needs: os-matrix
3644
name: build-${{ matrix.os }}
37-
needs: dotnet-format
3845
runs-on: ${{ matrix.os }}
3946
strategy:
4047
matrix:
41-
os: [ubuntu-latest, windows-latest, macOS-latest]
48+
os: ${{ fromJSON(needs.os-matrix.outputs.matrix) }}
4249
steps:
4350
- name: 🤘 checkout
4451
uses: actions/checkout@v2
@@ -47,20 +54,20 @@ jobs:
4754
fetch-depth: 0
4855

4956
- name: 🙏 build
50-
run: dotnet build -m:1 -bl:build.binlog -p:VersionLabel="$GITHUB_REF.$GITHUB_RUN_NUMBER" -p:RepositoryBranch=${GITHUB_REF#refs/*/}
57+
run: dotnet build -m:1 -p:VersionLabel="$GITHUB_REF.$GITHUB_RUN_NUMBER"
58+
59+
- name: ⚙ GNU grep
60+
if: matrix.os == 'macOS-latest'
61+
run: |
62+
brew install grep
63+
echo 'export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"' >> .bash_profile
5164
5265
- 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
66+
uses: ./.github/workflows/test
5467

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

58-
- name: 🔼 packages
59-
uses: actions/upload-artifact@v2
60-
with:
61-
name: bin
62-
path: bin/*.nupkg
63-
6471
# Only push CI package to sleet feed if building on ubuntu (fastest)
6572
- name: 🚀 sleet
6673
env:
@@ -70,79 +77,15 @@ jobs:
7077
dotnet tool install -g --version 4.0.18 sleet
7178
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"
7279
73-
acceptance:
74-
name: acceptance-${{ matrix.os }}
75-
runs-on: ${{ matrix.os }}
80+
dotnet-format:
81+
runs-on: ubuntu-latest
7682
needs: build
77-
strategy:
78-
matrix:
79-
os: [ubuntu-latest, windows-latest, macOS-latest]
8083
steps:
8184
- name: 🤘 checkout
8285
uses: actions/checkout@v2
86+
with:
87+
submodules: recursive
88+
fetch-depth: 0
8389

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
90+
- name: ✓ ensure format
91+
run: dotnet format --verify-no-changes -v:diag --exclude ~/.nuget

0 commit comments

Comments
 (0)