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

Commit

Permalink
Bump files with dotnet-file sync
Browse files Browse the repository at this point in the history
# 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
- Don't collect logs anymore devlooped/oss@6bd81a3
- Fix mapping sources devlooped/oss@b2fa09b
- 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
- Don't run analyzers/codefixers in format devlooped/oss@543f7da
- Parallelize format to speed up build devlooped/oss@13d67e2
- 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
- Update .editorconfig devlooped/oss@2981836
- Ignore test analyzer rules recursively. devlooped/oss@fd5b554
- Ignore azurite files devlooped/oss@829faad
- Ignore primary ctor parameter in tests, usually used for testoutput helper devlooped/oss@c779d3d
- 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
- 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
- Since dependabot doesn't consume API requests, do it more frequently devlooped/oss@4f070a4
- Only override VersionPrefix if it has no value devlooped/oss@28a27ba
- Allow extending build with local-only files devlooped/oss@6ae80a1
- 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
- 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

# clarius/pages
  • Loading branch information
kzu authored Apr 20, 2023
1 parent d806768 commit 4feeb89
Show file tree
Hide file tree
Showing 23 changed files with 676 additions and 397 deletions.
20 changes: 20 additions & 0 deletions .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 @@ -87,3 +93,17 @@ csharp_new_line_before_catch = true
csharp_new_line_before_finally = true
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_members_in_anonymous_types = true

# 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
10 changes: 1 addition & 9 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,4 @@ updates:
- package-ecosystem: nuget
directory: /
schedule:
interval: weekly
ignore:
- dependency-name: "Microsoft.CodeAnalysis.Common"
- dependency-name: "Microsoft.CodeAnalysis.CSharp"
- dependency-name: "Microsoft.CodeAnalysis.CSharp.Features"
- dependency-name: "Microsoft.CodeAnalysis.CSharp.Workspaces"
- dependency-name: "Microsoft.CodeAnalysis.VisualBasic"
- dependency-name: "Microsoft.Bcl.AsyncInterfaces"
- dependency-name: "Microsoft.Bcl.HashCode"
interval: daily
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
132 changes: 39 additions & 93 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,49 @@ name: build
on:
workflow_dispatch:
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
VersionPrefix: 42.42.${{ github.run_number }}
VersionLabel: ${{ github.ref }}

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

- 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
Expand All @@ -47,102 +56,39 @@ jobs:
fetch-depth: 0

- name: 🙏 build
run: dotnet build -m:1 -bl:build.binlog -p:VersionLabel="$GITHUB_REF.$GITHUB_RUN_NUMBER" -p:RepositoryBranch=${GITHUB_REF#refs/*/}
run: dotnet build -m:1

- name: ⚙ GNU grep
if: matrix.os == 'macOS-latest'
run: |
brew install grep
echo 'export PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"' >> .bash_profile
- name: 🧪 test
run: dotnet test --no-build -m:1 --blame-hang --blame-hang-timeout 5m -d $GITHUB_WORKSPACE/logs/${{ matrix.os }}.txt -r $GITHUB_WORKSPACE/logs
uses: ./.github/workflows/test

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

- name: 🔼 packages
uses: actions/upload-artifact@v2
with:
name: bin
path: bin/*.nupkg

# 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"
acceptance:
name: acceptance-${{ matrix.os }}
runs-on: ${{ matrix.os }}
needs: build
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: 🤘 checkout
uses: actions/checkout@v2

- name: 🔽 packages
uses: actions/download-artifact@v2
with:
name: bin
path: bin

- name: 🧪 test
run: dotnet test -p:VersionLabel="$GITHUB_REF.$GITHUB_RUN_NUMBER"
working-directory: src/Acceptance

preview:
defaults:
run:
shell: pwsh
needs: dotnet-format
runs-on: windows-latest

dotnet-format:
runs-on: ubuntu-latest
steps:
- name: 🤘 checkout
uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 0

# > VS Preview
- name: 🔽 dotnet-vs
run: dotnet tool update -g dotnet-vs
- name: 🔽 vs preview
run: vs install preview --quiet +Microsoft.VisualStudio.Component.ManagedDesktop.Core +Microsoft.NetCore.Component.DevelopmentTools
- name: ≥ msbuild
run: echo "$(vs where preview --prop=InstallationPath)\MSBuild\Current\Bin" >> $env:GITHUB_PATH
# < VS Preview

- name: ⚙ curl
- name: ✓ ensure format
run: |
iwr -useb get.scoop.sh | iex
scoop install curl
- name: 🔍 status for PR
if: ${{ github.event.pull_request.head.sha }}
run: echo "STATUS_SHA=${{ github.event.pull_request.head.sha }}" >> $env:GITHUB_ENV

- name: 🔍 status for branch
if: ${{ !github.event.pull_request.head.sha }}
run: echo "STATUS_SHA=$($env:GITHUB_SHA)" >> $env:GITHUB_ENV

- name: ⌛ wait on build
env:
CHECK: build-windows-latest
SHA: ${{ env.STATUS_SHA }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./.github/workflows/wait-status.ps1

- name: ⌛ wait on acceptance
env:
CHECK: acceptance-windows-latest
SHA: ${{ env.STATUS_SHA }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./.github/workflows/wait-status.ps1

- name: 🔽 packages
uses: actions/download-artifact@v2
with:
name: bin
path: bin

- name: 🧪 test
run: msbuild -r -t:build,test -p:TargetFramework=net472 -p:VersionLabel="$($env:GITHUB_REF).$($env:GITHUB_RUN_NUMBER)"
working-directory: src/Acceptance
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,9 +1,9 @@
usernames-as-github-logins=true
header-label=
issues_wo_labels=true
pr_wo_labels=true
exclude-labels=dependencies,duplicate,question,invalid,wontfix
exclude-labels=bydesign,dependencies,duplicate,question,invalid,wontfix,need info,docs
enhancement-label=:sparkles: Implemented enhancements:
bugs-label=:bug: Fixed bugs:
issues-label=:hammer: Other:
pr-label=:twisted_rightwards_arrows: Merged:
unreleased=false
33 changes: 18 additions & 15 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,39 @@
name: changelog
on:
workflow_dispatch:
release:
types: [released]

env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}

jobs:
changelog:
runs-on: ubuntu-latest
steps:
- name: 🔍 GH_TOKEN
if: env.GH_TOKEN == ''
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: echo "GH_TOKEN=${GITHUB_TOKEN}" >> $GITHUB_ENV

- name: 🤖 defaults
uses: devlooped/actions-bot@v1
with:
name: ${{ secrets.BOT_NAME }}
email: ${{ secrets.BOT_EMAIL }}
gh_token: ${{ secrets.GH_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: 🤘 checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: main
token: ${{ env.GH_TOKEN }}

- name: ⚙ ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0.3

- name: ⚙ changelog
uses: faberNovel/github-changelog-generator-action@master
with:
options: --token ${{ secrets.GITHUB_TOKEN }} --o changelog.md
run: |
gem install github_changelog_generator
github_changelog_generator --user ${GITHUB_REPOSITORY%/*} --project ${GITHUB_REPOSITORY##*/} --token $GH_TOKEN --o changelog.md --config-file .github/workflows/changelog.config
- name: 🚀 changelog
run: |
git config --local user.name github-actions
git config --local user.email github-actions@github.com
git add changelog.md
(git commit -m "🖉 Update changelog with ${GITHUB_REF#refs/*/}" && git push) || echo "Done"
(git commit -m "🖉 Update changelog with ${GITHUB_REF#refs/*/}" && git push) || echo "Done"
Loading

0 comments on commit 4feeb89

Please sign in to comment.