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
- 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
- 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
- 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
  • Loading branch information
kzu committed Feb 26, 2023
1 parent d806768 commit 914d8b7
Show file tree
Hide file tree
Showing 23 changed files with 648 additions and 398 deletions.
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,11 @@ 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

# 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
131 changes: 38 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,38 @@ 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 }}
dotnet-format:
runs-on: ubuntu-latest
needs: build
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: 🤘 checkout
uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 0

- 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

steps:
- name: 🤘 checkout
uses: actions/checkout@v2

# > 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
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
- name: ✓ ensure format
run: dotnet format --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 914d8b7

Please sign in to comment.