Skip to content

Commit

Permalink
chore: Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
samtrion committed Aug 28, 2023
0 parents commit 9c1c129
Show file tree
Hide file tree
Showing 24 changed files with 802 additions and 0 deletions.
1 change: 1 addition & 0 deletions .csharpierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tests/
78 changes: 78 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true

# DO NOT CHANGE SETTINGS IN THIS FILE. PLEASE CREATE PULL REQUEST IN REPOSITORY `dotnet-engineering`.

# Don't use tabs for indentation.
[*]
insert_final_newline = true
indent_style = space
trim_trailing_whitespace = true
charset = utf-8
end_of_line = lf

# Code files
[*.{cs,csx,vb,vbx}]
indent_size = 4
insert_final_newline = true
charset = utf-8-bom

# Razor and cshtml files
# UTF-8-BOM is set as default, as all official template files use UTF-8-BOM
# See https://github.com/dotnet/aspnetcore/pull/23502 and https://github.com/dotnet/aspnetcore/issues/22753
[*.{razor,cshtml}]
charset = utf-8-bom

# Generated code
[*{_AssemblyInfo.cs,.notsupported.cs,.generated.cs}]
generated_code = true

# XML project files
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj,nativeproj,locproj}]
indent_size = 2

# Xml build files
[*.builds]
indent_size = 2

# Xml files
[*.{xml,stylecop,resx,ruleset}]
indent_size = 2

# XML config files
[*.{props,targets,ruleset,config,nuspec,vsixmanifest,vsct}]
indent_size = 2

# JSON files
[*.json]
indent_size = 2

# YAML files
[*.{yml,yaml}]
indent_size = 2

# Powershell files
[*.ps1]
indent_size = 2

# Shell scripts
[*.sh]
indent_size = 2

# Commandline scripts
[*.{cmd,bat}]
end_of_line = crlf
indent_size = 2

[*.md]
trim_trailing_whitespace = false
insert_final_newline = false

# Visual Studio Solution Files
[*.sln]
indent_style = tab

[*.{received,verified}.txt]
insert_final_newline = false
trim_trailing_whitespace = false
3 changes: 3 additions & 0 deletions .filenesting.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"help":"https://go.microsoft.com/fwlink/?linkid=866610"
}
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Default owners for all projects
* @dailydevops/maintainers
47 changes: 47 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: "build(ci)"
labels:
- "dependency-actions"

- package-ecosystem: "nuget"
directory: "/"
schedule:
interval: "daily"
commit-message:
prefix: "build(deps)"
labels:
- "dependency-nuget"
open-pull-requests-limit: 20
groups:
coverlet:
patterns:
- "coverlet*"
testcontainers:
patterns:
- "testcontainers*"
verify:
patterns:
- "verify*"
xunit:
patterns:
- "xunit*"

- package-ecosystem: "gitsubmodule"
directory: "/"
schedule:
interval: "daily"
commit-message:
prefix: "build(mods)"
labels:
- "dependency-gitmodule"
24 changes: 24 additions & 0 deletions .github/template-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
additional:
- "analyzer"
- "article.benchmarks"
- "describe"
- "develop"
- "extensions.tasks"
- "extensions.test"
- "guard"
- "healthchecks"
- "http.correlation"
- "trydispose"

files:
- "!**/*"
- ".csharpierignore"
- ".editorconfig"
- ".github/CODEOWNERS"
- ".github/dependabot.yml"
- ".github/workflows/dependabot-merge.yml"
- ".github/workflows/update-license.yml"

# you probably want to exclude these files:
- "!.github/workflows/template-sync.yml"
- "!.github/template-sync.yml"
30 changes: 30 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
inputs:
dotnet-logging:
required: true
type: choice
default: minimal
options:
- quiet
- minimal
- normal
- detailed
- diagnostic

jobs:
all:
name: Build & Tests
uses: dailydevops/pipelines/.github/workflows/cicd-dotnet.yml@53112058f174beec924c627f07793b7b62f2a93a
with:
dotnet-logging: ${{ inputs.dotnet-logging | 'minimal' }}
dotnet-version: |
7.x
solution: ###SOLUTION###
secrets: inherit
17 changes: 17 additions & 0 deletions .github/workflows/dependabot-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Auto Merge Minor Upgrades

on:
pull_request:

jobs:
dependabot:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'

steps:
- name: Dependabot Auto Merge
uses: ahmadnassri/[email protected]
with:
target: minor
github-token: ${{ secrets.DEPENDABOT }}
command: squash and merge
23 changes: 23 additions & 0 deletions .github/workflows/template-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Update template files

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

jobs:
template-sync:
if: github.actor != 'dependabot[bot]'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: ahmadnassri/[email protected]
with:
github-token: ${{ secrets.TEMPLATE_SYNC }}
dry-run: false
29 changes: 29 additions & 0 deletions .github/workflows/update-license.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Update copyright year in license file

on:
schedule:
- cron: '0 6 1 1 *'
workflow_dispatch:

jobs:
run:
runs-on: ubuntu-latest
steps:

- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: FantasticFiasco/action-update-license-year@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
prTitle: 'chore: Updated LICENSE'
commitTitle: 'chore: Updated LICENSE [skip ci]'
id: license

- name: Merge PR
if: steps.license.outputs.pullRequestNumber != ''
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh pr merge --squash --admin --delete-branch ${{ steps.license.outputs.pullRequestNumber }}
Loading

0 comments on commit 9c1c129

Please sign in to comment.