-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Start work for issue #642 * ci: update reusable workflow refs from v6.2.1 to version v9.0.0 * ci: update reusable workflow refs from v7.2.1 to version v9.0.0 * ci: update status checks * ci: update release workflow * ci: create prepare release workflow * ci: improve workflows * ide: improve settings and setup for ide tools * docs: fix badges * ci: change renovate to run off of the preview branch * config: simple editor config update * ide: update snippets * docs: move location of release notes * chore: move location of images * ide: update tab settings * docs: update readme logo * ci: update release workflow input * ci: update status check run names * ci: improve prepare release workflow * ide: update tab settings * ci: fix workflow command syntax * ci: update reusable workflow ref versions * ide: update settings * ci: rename sonar workflow job * force status checks
- Loading branch information
1 parent
921ad54
commit 4ecec74
Showing
74 changed files
with
256 additions
and
279 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
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: ✅Build Status Check | ||
run-name: ✅Build Status Check (${{ github.base_ref }} branch) | ||
|
||
|
||
defaults: | ||
run: | ||
shell: pwsh | ||
|
||
|
||
on: | ||
pull_request: | ||
branches: [main, preview] | ||
|
||
|
||
jobs: | ||
build_status_check: | ||
name: ${{ vars.PROJECT_NAME }} Build Status Check | ||
uses: KinsonDigital/Infrastructure/.github/workflows/build-csharp-project.yml@v10.0.1 | ||
with: | ||
project-name: "${{ vars.PROJECT_NAME }}" | ||
build-config: Debug | ||
net-sdk-version: "${{ vars.NET_SDK_VERSION }}" |
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,83 @@ | ||
name: 🚁Prepare Release | ||
run-name: 🚁Prepare ${{ inputs.release-type }} Release (${{ inputs.release-version }}) | ||
|
||
|
||
defaults: | ||
run: | ||
shell: pwsh | ||
|
||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
release-type: | ||
description: The type of release. Choose 'Preview' or 'Production'. | ||
required: true | ||
type: choice | ||
options: [Preview, Production] | ||
release-version: | ||
required: true | ||
description: The version of the release to prepare. | ||
type: string | ||
|
||
|
||
jobs: | ||
print_validate_workflow: | ||
name: Print & Validate Prepare Release Workflow | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Print Environment Variables | ||
run: Get-ChildItem -Path Env:* | Sort-Object Name | ||
|
||
- name: Validate Workflow Inputs | ||
run: | | ||
$releaseType = "${{ inputs.release-type }}".ToLower(); | ||
if ("${{ vars.PROJECT_NAME }}".Trim() -eq "") { | ||
Write-Host "::error::The project name input cannot be empty."; | ||
exit 1; | ||
} | ||
if ($releaseType -eq "") { | ||
Write-Host "::error::The release type input cannot be empty."; | ||
exit 1; | ||
} | ||
if ($releaseType -ne 'preview' -and $releaseType -ne 'roduction') { | ||
Write-Host "::error::The release type input must be either 'Preview' or 'Production'."; | ||
exit 1; | ||
} | ||
$releaseVersion = "${{ inputs.release-version }}".Trim().ToLower(); | ||
if ($releaseVersion -eq "") { | ||
Write-Host "::error::The 'release-version' workflow input cannot be empty."; | ||
exit 1; | ||
} | ||
$prodVersionRegex = "v[0-9]+\.[0-9]+\.[0-9]+"; | ||
$prevVersionRegex = "v[0-9]+\.[0-9]+\.[0-9]+-preview\.[0-9]+"; | ||
# Verify that the version has valid syntax | ||
if (($releaseVersion -match $prodVersionRegex) -or ($releaseVersion -match $prevVersionRegex)) { | ||
Write-Host "::notice::The 'release-version' workflow input is valid."; | ||
} else { | ||
$versionSyntax = $releaseType == "production" ? "v#.#.#" : "v#.#.#-preview.#"; | ||
Write-Host "::error::The 'release-version' workflow input is not valid. Expected format: '$versionSyntax"; | ||
exit 1; | ||
} | ||
prepare_release: | ||
name: Prepare ${{ inputs.release-type }} Release Of ${{ vars.PROJECT_NAME }} | ||
needs: print_validate_workflow | ||
uses: KinsonDigital/Infrastructure/.github/workflows/prepare-release.yml@v10.0.1 | ||
with: | ||
project-name: "${{ vars.PROJECT_NAME }}" | ||
release-type: "${{ inputs.release-type }}" | ||
release-version: "${{ inputs.release-version }}" | ||
secrets: | ||
cicd-pat: ${{ secrets.CICD_TOKEN }} |
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
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
Oops, something went wrong.