Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
samtrion authored Oct 29, 2024
0 parents commit 1eb2165
Show file tree
Hide file tree
Showing 30 changed files with 1,003 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .commitlintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
extends: "@commitlint/config-conventional"
rules:
body-max-line-length: [2, "always", 1000]
subject-case: [2, "never", ["upper-case", "camel-case", "kebab-case"]]
30 changes: 30 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/dotnet
{
"name": "C# (.NET)",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/dotnet:1-8.0-bookworm",
"features": {
"ghcr.io/devcontainers/features/dotnet:2": {}
}

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [5000, 5001],
// "portsAttributes": {
// "5001": {
// "protocol": "https"
// }
// }

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "dotnet restore",

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
89 changes: 89 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# 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

# Verify settings
# https://github.com/VerifyTests/Verify?tab=readme-ov-file#text-file-settings
[*.{received,verified}.{txt,xml,json}]
charset = utf-8-bom
end_of_line = lf
indent_size = unset
indent_style = unset
insert_final_newline = false
tab_width = unset
trim_trailing_whitespace = false

# 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"
}
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
* text=auto eol=lf

# https://github.com/VerifyTests/Verify?tab=readme-ov-file#text-file-settings
*.verified.txt text eol=lf working-tree-encoding=UTF-8
*.verified.xml text eol=lf working-tree-encoding=UTF-8
*.verified.json text eol=lf working-tree-encoding=UTF-8
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/dotnet
13 changes: 13 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# These are supported funding model platforms
github: [dailydevops] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
# patreon: # Replace with a single Patreon username
# open_collective: # Replace with a single Open Collective username
# ko_fi: # Replace with a single Ko-fi username
# tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
# community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
# liberapay: # Replace with a single Liberapay username
# issuehunt: # Replace with a single IssueHunt username
# lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
# polar: # Replace with a single Polar username
# buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
# custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
37 changes: 37 additions & 0 deletions .github/ISSUE_TEMPLATE/template_bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: 🐞 Bug
description: Submit a bug report
title: "bug: <replace with a short description>"
labels: ["bug"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report! Before submitting a `bug`, please make sure there is no existing issue for the one you encountered.
- type: checkboxes
attributes:
label: Is there an existing issue for this?
description: Please search to see if an issue already exists for the bug you encountered.
options:
- label: I have searched the existing issues
required: true
- type: input
attributes:
label: Package & package version
description: Which package and version does this bug affect?
placeholder: e.g. NetEvolve.Example 1.2.3
validations:
required: true
- type: textarea
attributes:
label: Current Behavior
description: A concise description of what you're experiencing.
placeholder: The more details we have, the better we can reproduce the problem and fix it.
validations:
required: false
- type: textarea
attributes:
label: Expected Behavior
description: A concise description of what you expected to happen.
placeholder: The more details we have, the better we can reproduce the problem and fix it.
validations:
required: false
39 changes: 39 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/template_pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!-- Type of change
Please label this PR with one of the existing labels, depending on the scope of your change.
-->

## What does this PR do?

<!-- Mandatory
Explain here the changes you made on the PR. Please explain the WHAT: patterns used, algorithms implemented, design architecture, etc.
-->

## Why is it important?

<!-- Mandatory
Explain here the WHY, or the rationale / motivation for the changes.
-->

## Related issues

<!-- Recommended
Link related issues below. Insert the issue link or reference after the word "Closes" if merging this should automatically close it.

- Closes #123
- Relates #123
- Requires #123
- Supersedes #123
-->
-

<!-- Recommended
## How to test this PR

Explain here how this PR will be tested by the reviewer: commands, dependencies, steps, etc.
-->

<!-- Optional
## Follow-ups

Add here any thought that you consider could be identified as an actionable step once this PR is merged.
-->
71 changes: 71 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# 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

# Every time I update this file without changing the content, I increment this counter.
# Counter: 26

version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
commit-message:
prefix: "chore(ci)"
labels:
- "dependency-actions"
open-pull-requests-limit: 50

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

- package-ecosystem: "gitsubmodule"
directory: "/"
schedule:
interval: "daily"
commit-message:
prefix: "chore(mods)"
labels:
- "dependency-gitmodule"
open-pull-requests-limit: 50
groups:
submodules:
patterns:
- "*"

- package-ecosystem: "devcontainers"
directory: "/"
schedule:
interval: "daily"
commit-message:
prefix: "chore(dev)"
labels:
- "dependency-devcontainers"
open-pull-requests-limit: 50
7 changes: 7 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name-template: $RESOLVED_VERSION
tag-template: $RESOLVED_VERSION

template: |
# What's Changed
$CHANGES
44 changes: 44 additions & 0 deletions .github/template-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Every time I update this file without changing the content, I increment this counter.
# Counter: 2

additional:
- analyzer
- archiduct
- arguments
- article.benchmarks
- editorconfig
- extensions.hosting.winforms
- extensions.strings
- extensions.tasks
- extensions.test
- fluentvalue
- guard
- healthchecks
- http.correlation
- logging.abstractions
- logging.file
- logging.measurement
- logging.mstest
- logging.xunit
- projectbuilders
- sequentialguid

files:
- "!**/*"
- ".commitlintrc"
- ".editorconfig"
- ".gitattributes"
- ".gitignore"
- "GitVersion.yml"
- ".github/CODEOWNERS"
- ".github/dependabot.yml"
- ".github/FUNDING.yml"
- ".github/release-drafter.yml"
- ".github/ISSUE_TEMPLATE/**/*"
- ".github/PULL_REQUEST_TEMPLATE/**/*"
- ".github/workflows/update-license.yml"

# you probably want to exclude these files:
- "!.github/workflows/dependabot-merge.yml"
- "!.github/workflows/template-sync.yml"
- "!.github/template-sync.yml"
31 changes: 31 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
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:
if: github.run_id != 1
name: Build & Tests
uses: dailydevops/pipelines/.github/workflows/[email protected]
with:
disablePublish: true
dotnet-logging: ${{ inputs.dotnet-logging }}
dotnet-version: ${{ vars.NE_DOTNET_TARGETFRAMEWORKS }}
solution: ###SOLUTION###
secrets: inherit
Loading

0 comments on commit 1eb2165

Please sign in to comment.