-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: added initial project configuration
- Loading branch information
Showing
17 changed files
with
8,168 additions
and
1 deletion.
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,64 @@ | ||
# Version: 1.6.2 (Using https://semver.org/) | ||
# Updated: 2020-11-02 | ||
# See https://github.com/RehanSaeed/EditorConfig/releases for release notes. | ||
# See https://github.com/RehanSaeed/EditorConfig for updates to this file. | ||
# See http://EditorConfig.org for more information about .editorconfig files. | ||
|
||
########################################## | ||
# Common Settings | ||
########################################## | ||
|
||
# This file is the top-most EditorConfig file | ||
root = true | ||
|
||
# All Files | ||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 4 | ||
insert_final_newline = false | ||
trim_trailing_whitespace = true | ||
|
||
########################################## | ||
# File Extension Settings | ||
########################################## | ||
|
||
# Visual Studio Solution Files | ||
[*.sln] | ||
indent_style = tab | ||
|
||
# Visual Studio XML Project Files | ||
[*.{csproj,vbproj,vcxproj.filters,proj,projitems,shproj}] | ||
indent_size = 2 | ||
|
||
# XML Configuration Files | ||
[*.{xml,config,props,targets,nuspec,resx,ruleset,vsixmanifest,vsct}] | ||
indent_size = 2 | ||
|
||
# JSON Files | ||
[*.{json,json5,webmanifest}] | ||
indent_size = 2 | ||
|
||
# YAML Files | ||
[*.{yml,yaml}] | ||
indent_size = 2 | ||
|
||
# Markdown Files | ||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
# Web Files | ||
[*.{htm,html,js,jsm,ts,tsx,css,sass,scss,less,svg,vue}] | ||
indent_size = 2 | ||
|
||
# Batch Files | ||
[*.{cmd,bat}] | ||
end_of_line = crlf | ||
|
||
# Bash Files | ||
[*.sh] | ||
end_of_line = lf | ||
|
||
# Makefiles | ||
[Makefile] | ||
indent_style = tab |
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,63 @@ | ||
############################################################################### | ||
# Set default behavior to automatically normalize line endings. | ||
############################################################################### | ||
* text=auto | ||
|
||
############################################################################### | ||
# Set default behavior for command prompt diff. | ||
# | ||
# This is need for earlier builds of msysgit that does not have it on by | ||
# default for csharp files. | ||
# Note: This is only used by command line | ||
############################################################################### | ||
#*.cs diff=csharp | ||
|
||
############################################################################### | ||
# Set the merge driver for project and solution files | ||
# | ||
# Merging from the command prompt will add diff markers to the files if there | ||
# are conflicts (Merging from VS is not affected by the settings below, in VS | ||
# the diff markers are never inserted). Diff markers may cause the following | ||
# file extensions to fail to load in VS. An alternative would be to treat | ||
# these files as binary and thus will always conflict and require user | ||
# intervention with every merge. To do so, just uncomment the entries below | ||
############################################################################### | ||
#*.sln merge=binary | ||
#*.csproj merge=binary | ||
#*.vbproj merge=binary | ||
#*.vcxproj merge=binary | ||
#*.vcproj merge=binary | ||
#*.dbproj merge=binary | ||
#*.fsproj merge=binary | ||
#*.lsproj merge=binary | ||
#*.wixproj merge=binary | ||
#*.modelproj merge=binary | ||
#*.sqlproj merge=binary | ||
#*.wwaproj merge=binary | ||
|
||
############################################################################### | ||
# behavior for image files | ||
# | ||
# image files are treated as binary by default. | ||
############################################################################### | ||
#*.jpg binary | ||
#*.png binary | ||
#*.gif binary | ||
|
||
############################################################################### | ||
# diff behavior for common document formats | ||
# | ||
# Convert binary document formats to text before diffing them. This feature | ||
# is only available from the command line. Turn it on by uncommenting the | ||
# entries below. | ||
############################################################################### | ||
#*.doc diff=astextplain | ||
#*.DOC diff=astextplain | ||
#*.docx diff=astextplain | ||
#*.DOCX diff=astextplain | ||
#*.dot diff=astextplain | ||
#*.DOT diff=astextplain | ||
#*.pdf diff=astextplain | ||
#*.PDF diff=astextplain | ||
#*.rtf diff=astextplain | ||
#*.RTF diff=astextplain |
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,38 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Desktop (please complete the following information):** | ||
- OS: [e.g. iOS] | ||
- Browser [e.g. chrome, safari] | ||
- Version [e.g. 22] | ||
|
||
**Smartphone (please complete the following information):** | ||
- Device: [e.g. iPhone6] | ||
- OS: [e.g. iOS8.1] | ||
- Browser [e.g. stock browser, safari] | ||
- Version [e.g. 22] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
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,20 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
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,20 @@ | ||
<!-- | ||
Thank you for your pull request, #h5yr! But it's just a beginning. | ||
Please provide details where it's required and review the requirements below. | ||
--> | ||
**What this PR does / why it's submitted / why we need it**: | ||
|
||
|
||
--- | ||
|
||
**Checklist**: | ||
<!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> | ||
|
||
- [ ] My PR has a descriptive title (not a vague title like `Needed this`) | ||
- [ ] Title and all the commits follow [commitlint guidelines](https://github.com/conventional-changelog/commitlint#what-is-commitlint) | ||
- [ ] My PR targets the `develop` branch or appropriate `release` branch | ||
- [ ] I've placed the link to the corresponding Trello card or issue which this PR fixes/address below ⤵️ | ||
|
||
--- | ||
|
||
Fixes: ### ISSUE_OR_TRELLO_LINK ### |
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,114 @@ | ||
name: Build | ||
|
||
on: | ||
pull_request: | ||
branches: [ main, master, develop ] | ||
workflow_run: | ||
workflows: [ "Changelog generator" ] | ||
types: | ||
- completed | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-20.04 | ||
env: | ||
# Stop wasting time caching packages | ||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | ||
|
||
# Disable sending usage data to Microsoft | ||
DOTNET_CLI_TELEMETRY_OPTOUT: true | ||
|
||
# Solution Setup | ||
CONFIG: 'Release' | ||
PROJECT_NAME: '${GITHUB_REPOSITORY#*/}' | ||
VERSION: '1.0.0' | ||
|
||
# Nuget Setup | ||
NUGET_VERSION: 'latest' | ||
NUGET_OUTPUT: '.output/' | ||
|
||
steps: | ||
- name: Checkout reference commit | ||
if: ${{ github.event_name == 'pull_request' }} | ||
uses: actions/checkout@v2 | ||
|
||
- name: Checkout master | ||
if: ${{ github.event_name != 'pull_request' }} | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: master | ||
fetch-depth: 0 | ||
|
||
- name: Get version | ||
if: ${{ github.event_name != 'pull_request' }} | ||
shell: bash | ||
run: | | ||
tag_check=$(git describe --exact-match `git rev-parse HEAD` | head -1) | ||
echo "VERSION=$tag_check" >> $GITHUB_ENV | ||
- name: Setup MSBuild | ||
uses: microsoft/setup-msbuild@v1 | ||
|
||
- name: Setup .NET Core 3.1.x | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: '3.1.x' | ||
|
||
- name: Setup .NET5 5.0.x | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: '5.0.x' | ||
|
||
- name: Configure NuGet | ||
uses: nuget/setup-nuget@v1 | ||
with: | ||
nuget-version: ${{ env.NUGET_VERSION }} | ||
|
||
- name: Install Dependencies | ||
shell: powershell | ||
working-directory: ${{ github.workspace }} | ||
run: | | ||
$solutions = Get-ChildItem -Path ./src -Recurse -Include *.sln | ||
foreach ($solutionFile in $solutions){ | ||
dotnet restore "$solutionFile" | ||
} | ||
- name: Build | ||
shell: powershell | ||
working-directory: ${{ github.workspace }} | ||
run: | | ||
$solutions = Get-ChildItem -Path ./src -Recurse -Include *.sln | ||
foreach ($solutionFile in $solutions){ | ||
msbuild.exe "$solutionFile" ` | ||
/p:Configuration=${{ env.CONFIG }} ` | ||
/p:DeployOnBuild=false ` | ||
/p:SkipInvalidConfigurations=true ` | ||
/p:TransformWebConfigEnabled=False ` | ||
/p:AutoParameterizationWebConfigConnectionStrings=False ` | ||
/p:MarkWebConfigAssistFilesAsExclude=False | ||
} | ||
- name: Pack all nuspec files | ||
if: ${{ github.event_name != 'pull_request' }} | ||
shell: powershell | ||
working-directory: ${{ github.workspace }} | ||
run: | | ||
$nuspecFiles = Get-ChildItem -Path ./src -Recurse -Include *.nuspec | ||
foreach ($nuspecFile in $nuspecFiles){ | ||
nuget pack "$nuspecFile" ` | ||
-Version ${{ env.VERSION }} ` | ||
-Properties Configuration=${{ env.CONFIG }} ` | ||
-OutputDirectory ${{ env.NUGET_OUTPUT }} | ||
} | ||
- name: Upload build artifact | ||
if: ${{ github.event_name != 'pull_request' }} | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: build_${{ env.PROJECT_NAME }}.${{ env.VERSION }} | ||
path: ${{ github.workspace }}/${{ env.NUGET_OUTPUT }} |
Oops, something went wrong.