Skip to content

Commit 9459ca1

Browse files
committed
Initial commit
0 parents  commit 9459ca1

30 files changed

+1582
-0
lines changed

.editorconfig

+443
Large diffs are not rendered by default.

.gitattributes

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
###############################
2+
# Git Line Endings #
3+
###############################
4+
5+
# Set default behavior to automatically normalize line endings.
6+
* text=auto
7+
8+
# Force batch scripts to always use CRLF line endings so that if a repo is accessed
9+
# in Windows via a file share from Linux, the scripts will work.
10+
*.{cmd,[cC][mM][dD]} text eol=crlf
11+
*.{bat,[bB][aA][tT]} text eol=crlf
12+
13+
# Force bash scripts to always use LF line endings so that if a repo is accessed
14+
# in Unix via a file share from Windows, the scripts will work.
15+
*.sh text eol=lf
16+
17+
###############################
18+
# Git Large File System (LFS) #
19+
###############################
20+
21+
# Archives
22+
*.7z filter=lfs diff=lfs merge=lfs -text
23+
*.br filter=lfs diff=lfs merge=lfs -text
24+
*.gz filter=lfs diff=lfs merge=lfs -text
25+
*.tar filter=lfs diff=lfs merge=lfs -text
26+
*.zip filter=lfs diff=lfs merge=lfs -text
27+
28+
# Documents
29+
*.pdf filter=lfs diff=lfs merge=lfs -text
30+
31+
# Images
32+
*.gif filter=lfs diff=lfs merge=lfs -text
33+
*.ico filter=lfs diff=lfs merge=lfs -text
34+
*.jpg filter=lfs diff=lfs merge=lfs -text
35+
*.png filter=lfs diff=lfs merge=lfs -text
36+
*.psd filter=lfs diff=lfs merge=lfs -text
37+
*.webp filter=lfs diff=lfs merge=lfs -text
38+
39+
# Fonts
40+
*.woff2 filter=lfs diff=lfs merge=lfs -text
41+
42+
# Other
43+
*.exe filter=lfs diff=lfs merge=lfs -text

.github/ISSUE_TEMPLATE/BUG_REPORT.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: Bug Report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
---
8+
9+
### Describe the bug
10+
11+
A clear and concise description of what the bug is.
12+
13+
### To Reproduce
14+
15+
A link to some code to reproduce the bug can speed up a fix. Alternatively, show steps to reproduce the behaviour:
16+
17+
1. Go to '...'
18+
2. Click on '....'
19+
3. Scroll down to '....'
20+
4. See error
21+
22+
### Expected behaviour
23+
24+
A clear and concise description of what you expected to happen.
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
name: Feature Request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
---
8+
9+
### Describe the feature
10+
11+
A clear and concise description of what the feature is.

.github/release-drafter.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# release-drafter automatically creates a draft release for you each time you complete a PR in the main branch.
2+
# It uses GitHub labels to categorize changes (See categories) and draft the release.
3+
# release-drafter also generates a version for your release based on GitHub labels. You can add a label of 'major',
4+
# 'minor' or 'patch' to determine which number in the version to increment.
5+
# You may need to add these labels yourself.
6+
# See https://github.com/release-drafter/release-drafter
7+
name-template: '$RESOLVED_VERSION'
8+
tag-template: '$RESOLVED_VERSION'
9+
change-template: '- $TITLE by @$AUTHOR (#$NUMBER)'
10+
no-changes-template: '- No changes'
11+
categories:
12+
- title: '🚀 New Features'
13+
labels:
14+
- 'enhancement'
15+
- title: '🐛 Bug Fixes'
16+
labels:
17+
- 'bug'
18+
- title: '🧰 Maintenance'
19+
labels:
20+
- 'maintenance'
21+
version-resolver:
22+
major:
23+
labels:
24+
- 'major'
25+
minor:
26+
labels:
27+
- 'minor'
28+
patch:
29+
labels:
30+
- 'patch'
31+
default: patch
32+
template: |
33+
$CHANGES
34+
35+
## 👨🏼‍💻 Contributors
36+
37+
$CONTRIBUTORS

.github/workflows/build.yml

+97
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
release:
9+
types:
10+
- published
11+
workflow_dispatch:
12+
13+
env:
14+
# Disable the .NET logo in the console output.
15+
DOTNET_NOLOGO: true
16+
# Disable the .NET first time experience to skip caching NuGet packages and speed up the build.
17+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
18+
# Disable sending .NET CLI telemetry to Microsoft.
19+
DOTNET_CLI_TELEMETRY_OPTOUT: true
20+
# Set the build number in MinVer.
21+
MINVERBUILDMETADATA: build.${{github.run_number}}
22+
23+
jobs:
24+
build:
25+
name: Build-${{matrix.os}}
26+
runs-on: ${{matrix.os}}
27+
strategy:
28+
matrix:
29+
os: [ubuntu-latest, windows-latest, macOS-latest]
30+
steps:
31+
- name: 'Checkout'
32+
uses: actions/checkout@v2
33+
with:
34+
lfs: true
35+
fetch-depth: 0
36+
- name: 'Git Fetch Tags'
37+
run: git fetch --tags
38+
shell: pwsh
39+
- name: 'Install .NET Core SDK'
40+
uses: actions/setup-dotnet@v1
41+
- name: 'Dotnet Tool Restore'
42+
run: dotnet tool restore
43+
shell: pwsh
44+
- name: 'Dotnet Cake Build'
45+
run: dotnet cake --target=Build
46+
shell: pwsh
47+
- name: 'Dotnet Cake Test'
48+
run: dotnet cake --target=Test
49+
shell: pwsh
50+
- name: 'Dotnet Cake Pack'
51+
run: dotnet cake --target=Pack
52+
shell: pwsh
53+
- name: 'Publish Artefacts'
54+
uses: actions/[email protected]
55+
with:
56+
name: ${{matrix.os}}
57+
path: './Artefacts'
58+
59+
push-github-packages:
60+
name: 'Push GitHub Packages'
61+
needs: build
62+
if: github.ref == 'refs/heads/main' || github.event_name == 'release'
63+
environment:
64+
name: 'GitHub Packages'
65+
url: https://github.com/Username/Project/packages
66+
runs-on: windows-latest
67+
steps:
68+
- name: 'Download Artefact'
69+
uses: actions/download-artifact@v1
70+
with:
71+
name: 'windows-latest'
72+
- name: 'Dotnet NuGet Add Source'
73+
run: dotnet nuget add source https://nuget.pkg.github.com/Username/index.json --name GitHub --username Username --password ${{secrets.GITHUB_TOKEN}}
74+
shell: pwsh
75+
- name: 'Dotnet NuGet Push'
76+
run: dotnet nuget push .\windows-latest\*.nupkg --api-key ${{ github.token }} --source GitHub --skip-duplicate
77+
shell: pwsh
78+
79+
push-nuget:
80+
name: 'Push NuGet Packages'
81+
needs: build
82+
if: github.event_name == 'release'
83+
environment:
84+
name: 'NuGet'
85+
url: https://www.nuget.org/packages/ConfigurationDebugViewEndpoint
86+
runs-on: windows-latest
87+
steps:
88+
- name: 'Download Artefact'
89+
uses: actions/download-artifact@v1
90+
with:
91+
name: 'windows-latest'
92+
- name: 'Dotnet NuGet Push'
93+
run: |
94+
Get-ChildItem .\windows-latest -Filter *.nupkg |
95+
Where-Object { !$_.Name.Contains('preview') } |
96+
ForEach-Object { dotnet nuget push $_ --source https://api.nuget.org/v3/index.json --skip-duplicate --api-key ${{secrets.NUGET_API_KEY}} }
97+
shell: pwsh

.github/workflows/release-drafter.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
jobs:
10+
update_release_draft:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: release-drafter/release-drafter@v5
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)