generated from dailydevops/dotnet-template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 9c1c129
Showing
24 changed files
with
802 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tests/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"help":"https://go.microsoft.com/fwlink/?linkid=866610" | ||
} |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Default owners for all projects | ||
* @dailydevops/maintainers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
Oops, something went wrong.