-
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.
Mainstream the files in the solution to GSoft's library standard
- Loading branch information
Showing
31 changed files
with
329 additions
and
270 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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
charset = utf-8 | ||
|
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 |
---|---|---|
|
@@ -12,4 +12,5 @@ | |
*.yml text eol=lf | ||
*.yaml text eol=lf | ||
*.Dockerfile text eol=lf | ||
Dockerfile text eol=lf | ||
LICENSE text eol=lf |
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 @@ | ||
* @gsoft-inc/tech-platform |
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,32 @@ | ||
--- | ||
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. 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. | ||
|
||
**Environment (please complete the following information):** | ||
- OS: [e.g. Windows] | ||
- Version: [e.g. 1.2.3] | ||
- IDE: [e.g. Rider] | ||
- etc. | ||
|
||
**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 @@ | ||
blank_issues_enabled: 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,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,11 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "nuget" | ||
directory: "/src" | ||
schedule: | ||
interval: "weekly" | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
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 |
---|---|---|
@@ -1,32 +1,21 @@ | ||
name: CI build | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
branches: ["main", "master"] | ||
|
||
jobs: | ||
build: | ||
main: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-dotnet@v2 | ||
- uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: | | ||
3.1.x | ||
6.0.x | ||
dotnet-version: "6.0.x" | ||
|
||
- run: ./build.ps1 | ||
- run: ./Build.ps1 | ||
shell: pwsh | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: packages | ||
path: ./.output/**/* |
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,35 @@ | ||
name: CodeQL | ||
|
||
on: | ||
push: | ||
branches: ["main", "master"] | ||
pull_request: | ||
branches: ["main", "master"] | ||
schedule: | ||
- cron: "22 6 * * 0" | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v2 | ||
with: | ||
languages: csharp | ||
|
||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v2 | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v2 | ||
with: | ||
category: "/language:csharp" |
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,25 @@ | ||
name: Publish | ||
|
||
on: | ||
push: | ||
branches: ["main", "master"] | ||
tags: ["*.*.*"] | ||
|
||
jobs: | ||
main: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: "6.0.x" | ||
|
||
- run: ./Build.ps1 | ||
shell: pwsh | ||
env: | ||
NUGET_SOURCE: ${{ secrets.NUGET_SOURCE }} | ||
NUGET_API_KEY: ${{ secrets.GSOFTINC_NUGET_API_KEY }} |
This file was deleted.
Oops, something went wrong.
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
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,35 @@ | ||
#Requires -Version 5.0 | ||
|
||
Begin { | ||
$ErrorActionPreference = "stop" | ||
} | ||
|
||
Process { | ||
function Exec([scriptblock]$Command) { | ||
& $Command | ||
if ($LASTEXITCODE -ne 0) { | ||
throw ("An error occurred while executing command: {0}" -f $Command) | ||
} | ||
} | ||
|
||
$workingDir = Join-Path $PSScriptRoot "src" | ||
$outputDir = Join-Path $PSScriptRoot ".output" | ||
$nupkgsPath = Join-Path $outputDir "*.nupkg" | ||
|
||
try { | ||
Push-Location $workingDir | ||
Remove-Item $outputDir -Force -Recurse -ErrorAction SilentlyContinue | ||
|
||
Exec { & dotnet clean -c Release } | ||
Exec { & dotnet build -c Release } | ||
Exec { & dotnet test -c Release --no-build -r "$outputDir" --no-restore -l "trx" -l "console;verbosity=detailed" } | ||
Exec { & dotnet pack -c Release --no-build -o "$outputDir" } | ||
|
||
if (($null -ne $env:NUGET_SOURCE ) -and ($null -ne $env:NUGET_API_KEY)) { | ||
Exec { & dotnet nuget push "$nupkgsPath" -s $env:NUGET_SOURCE -k $env:NUGET_API_KEY } | ||
} | ||
} | ||
finally { | ||
Pop-Location | ||
} | ||
} |
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 @@ | ||
# Contributing | ||
|
||
We do not accept external pull requests yet. |
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,94 @@ | ||
assembly-versioning-scheme: MajorMinorPatch | ||
assembly-file-versioning-scheme: MajorMinorPatch | ||
assembly-informational-format: "{InformationalVersion}" | ||
mode: ContinuousDelivery | ||
increment: Inherit | ||
continuous-delivery-fallback-tag: ci | ||
tag-prefix: "[vV]" | ||
major-version-bump-message: '\+semver:\s?(breaking|major)' | ||
minor-version-bump-message: '\+semver:\s?(feature|minor)' | ||
patch-version-bump-message: '\+semver:\s?(fix|patch)' | ||
no-bump-message: '\+semver:\s?(none|skip)' | ||
legacy-semver-padding: 4 | ||
build-metadata-padding: 4 | ||
commits-since-version-source-padding: 4 | ||
tag-pre-release-weight: 60000 | ||
commit-message-incrementing: Enabled | ||
update-build-number: true | ||
|
||
branches: | ||
main: | ||
regex: ^(master|main)$ | ||
mode: ContinuousDeployment | ||
tag: preview | ||
increment: Patch | ||
prevent-increment-of-merged-branch-version: true | ||
track-merge-target: false | ||
source-branches: ["develop", "release"] | ||
tracks-release-branches: false | ||
is-release-branch: false | ||
is-mainline: true | ||
pre-release-weight: 55000 | ||
develop: | ||
regex: ^dev(elop)?(ment)?$ | ||
mode: ContinuousDeployment | ||
tag: alpha | ||
increment: Minor | ||
prevent-increment-of-merged-branch-version: false | ||
track-merge-target: true | ||
source-branches: [] | ||
tracks-release-branches: true | ||
is-release-branch: false | ||
is-mainline: false | ||
pre-release-weight: 0 | ||
release: | ||
regex: ^releases?[/-] | ||
mode: ContinuousDelivery | ||
tag: beta | ||
increment: None | ||
prevent-increment-of-merged-branch-version: true | ||
track-merge-target: false | ||
source-branches: ["develop", "main", "support", "release"] | ||
tracks-release-branches: false | ||
is-release-branch: true | ||
is-mainline: false | ||
pre-release-weight: 30000 | ||
feature: | ||
regex: ^features?[/-] | ||
mode: ContinuousDelivery | ||
tag: useBranchName | ||
increment: Inherit | ||
prevent-increment-of-merged-branch-version: false | ||
track-merge-target: false | ||
source-branches: | ||
["develop", "main", "release", "feature", "support", "hotfix"] | ||
tracks-release-branches: false | ||
is-release-branch: false | ||
is-mainline: false | ||
pre-release-weight: 30000 | ||
pull-request: | ||
regex: ^(pull|pull\-requests|pr)[/-] | ||
mode: ContinuousDelivery | ||
tag: PullRequest | ||
increment: Inherit | ||
prevent-increment-of-merged-branch-version: false | ||
tag-number-pattern: '[/-](?<number>\d+)[-/]' | ||
track-merge-target: false | ||
source-branches: | ||
["develop", "main", "release", "feature", "support", "hotfix"] | ||
tracks-release-branches: false | ||
is-release-branch: false | ||
is-mainline: false | ||
pre-release-weight: 30000 | ||
hotfix: | ||
regex: ^hotfix(es)?[/-] | ||
mode: ContinuousDelivery | ||
tag: beta | ||
increment: Patch | ||
prevent-increment-of-merged-branch-version: false | ||
track-merge-target: false | ||
source-branches: ["develop", "main", "support"] | ||
tracks-release-branches: false | ||
is-release-branch: false | ||
is-mainline: false | ||
pre-release-weight: 30000 |
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
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 @@ | ||
# Security Policy | ||
|
||
If you'd like to report a vulnerability, please open a [GitHub issue](https://github.com/gsoft-inc/gsoft-extensions-configuration-substitution/issues). |
Oops, something went wrong.