generated from Kentico/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b3df5da
Showing
24 changed files
with
1,132 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,120 @@ | ||
name: "$(Build.DefinitionName) #$(Build.BuildId)" | ||
|
||
trigger: none # Manual Publish | ||
pr: none # GitHub Actions handle PRs | ||
|
||
parameters: | ||
- name: AgentPoolName | ||
displayName: Agent pool name | ||
type: string | ||
default: Default | ||
|
||
- name: AgentName | ||
displayName: Agent name - single char for any | ||
type: string | ||
default: " " | ||
|
||
variables: | ||
- name: SIGN_FILE | ||
value: true | ||
|
||
stages: | ||
- stage: Build | ||
jobs: | ||
- job: Build | ||
displayName: Build, Sign, and Pack | ||
|
||
pool: | ||
name: ${{ parameters.AgentPoolName }} | ||
${{ if ne(length(parameters.AgentName), 1) }}: | ||
demands: | ||
- Agent.Name -equals ${{ parameters.AgentName }} | ||
|
||
variables: | ||
- group: 14.0 Authenticode signature parameters | ||
|
||
- name: Configuration | ||
value: Release | ||
|
||
- name: ProjectPath | ||
value: src/PROJECT_NAME/PROJECT_NAME.csproj | ||
|
||
steps: | ||
- task: UseDotNet@2 | ||
displayName: Select dotnet version | ||
inputs: | ||
packageType: sdk | ||
useGlobalJson: true | ||
|
||
- task: DotNetCoreCLI@2 | ||
displayName: Restore dependencies | ||
inputs: | ||
command: restore | ||
projects: ${{ variables.ProjectPath }} | ||
feedsToUse: select | ||
restoreArguments: --locked-mode | ||
|
||
- task: DotNetCoreCLI@2 | ||
displayName: Build | ||
inputs: | ||
command: build | ||
projects: ${{ variables.ProjectPath }} | ||
configuration: ${{ variables.Configuration }} | ||
arguments: --no-restore | ||
|
||
- task: DotNetCoreCLI@2 | ||
displayName: Create NuGet package | ||
inputs: | ||
command: pack | ||
packagesToPack: ${{ variables.ProjectPath }} | ||
configuration: ${{ variables.Configuration }} | ||
packDirectory: $(System.DefaultWorkingDirectory)/packages | ||
includesymbols: true | ||
nobuild: true | ||
versioningScheme: off | ||
|
||
- publish: $(System.DefaultWorkingDirectory)/packages | ||
displayName: Publish NuGet package as artifact | ||
artifact: artifact | ||
|
||
- ${{ if eq(variables['Build.SourceBranch'], 'refs/heads/main') }}: | ||
- stage: PublishNuGetPackages | ||
displayName: Publish NuGet packages | ||
dependsOn: Build | ||
|
||
jobs: | ||
- deployment: PublishNuGetPackages | ||
displayName: Publish NuGet packages | ||
|
||
pool: | ||
name: ${{ parameters.AgentPoolName }} | ||
${{ if ne(length(parameters.AgentName), 1) }}: | ||
demands: | ||
- Agent.Name -equals ${{ parameters.AgentName }} | ||
|
||
environment: integrations-release-nuget | ||
workspace: | ||
clean: all | ||
strategy: | ||
runOnce: | ||
deploy: | ||
steps: | ||
- checkout: none | ||
|
||
- task: NuGetToolInstaller@1 | ||
displayName: Install latest nuget.exe | ||
inputs: | ||
versionSpec: ">=5.6" | ||
checkLatest: true | ||
|
||
- task: NuGetAuthenticate@1 | ||
displayName: NuGet Authenticate | ||
|
||
- task: NuGetCommand@2 | ||
displayName: NuGet push | ||
inputs: | ||
command: push | ||
packagesToPush: $(Pipeline.Workspace)/artifact/*.nupkg | ||
nuGetFeedType: external | ||
publishFeedCredentials: nuget.org | ||
allowPackageConflicts: true |
Large diffs are not rendered by default.
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,5 @@ | ||
# Users referenced in this file will automatically be requested as reviewers for PRs that modify the given paths | ||
|
||
## See <https://help.github.com/articles/about-code-owners/> | ||
|
||
- @Kentico/community-relations |
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,55 @@ | ||
name: "CI: Build and Test" | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
paths: | ||
- "**.cs" | ||
- "**.cshtml" | ||
- "**.tsx" | ||
- "**.js" | ||
- "**.json" | ||
- "**.csproj" | ||
- "**.props" | ||
- "**.targets" | ||
- "**.sln" | ||
|
||
jobs: | ||
build_and_test: | ||
name: Build and Test | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: pwsh | ||
|
||
env: | ||
ASPNETCORE_ENVIRONMENT: CI | ||
DOTNET_CLI_TELEMETRY_OPTOUT: 1 | ||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 | ||
DOTNET_NOLOGO: 1 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
global-json-file: global.json | ||
|
||
- name: Install dependencies | ||
run: | | ||
dotnet restore ` | ||
--locked-mode | ||
- name: Build Solution | ||
run: | | ||
dotnet build ` | ||
--configuration Release ` | ||
--no-restore | ||
- name: Test Solution | ||
run: | | ||
dotnet test ` | ||
--configuration Release ` | ||
--no-build ` | ||
--no-restore |
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,142 @@ | ||
### XbK additions | ||
|
||
**/wwwroot/cache.json | ||
|
||
### Xbk additions end | ||
|
||
## Ignore Visual Studio temporary files, build results, and | ||
## files generated by popular Visual Studio add-ons. | ||
## | ||
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore | ||
|
||
# User-specific files | ||
*.suo | ||
*.csproj.user | ||
*.ReSharper.user | ||
*.DotSettings.user | ||
*.sln.docstates | ||
.vs | ||
|
||
# Build results | ||
|
||
[Dd]ebug/ | ||
[Rr]elease/ | ||
# x64/ | ||
[Bb]in/ | ||
[Oo]bj/ | ||
[Oo]utput/ | ||
|
||
# MSTest test Results | ||
[Tt]est[Rr]esult*/ | ||
[Bb]uild[Ll]og.* | ||
|
||
*_i.c | ||
*_p.c | ||
*.ilk | ||
*.meta | ||
*.obj | ||
*.pdb | ||
*.pgc | ||
*.pgd | ||
*.rsp | ||
*.sbr | ||
*.tlb | ||
*.tli | ||
*.tlh | ||
*.tmp | ||
*.tmp_proj | ||
*.log | ||
*.svclog | ||
*.vspscc | ||
*.vssscc | ||
.builds | ||
*.pidb | ||
*.log | ||
*.scc | ||
*.jfm | ||
|
||
# Visual Studio profiler | ||
*.psess | ||
*.vsp | ||
*.vspx | ||
|
||
# ReSharper is a .NET coding add-in | ||
_ReSharper*/ | ||
*.[Rr]e[Ss]harper | ||
|
||
# DotCover is a Code Coverage Tool | ||
*.dotCover | ||
|
||
# Publish Web Output | ||
*.Publish.xml | ||
|
||
# Others | ||
sql/ | ||
*.Cache | ||
ClientBin/ | ||
[Ss]tyle[Cc]op.* | ||
~$* | ||
*~ | ||
*.dbmdl | ||
*.[Pp]ublish.xml | ||
# *.pfx | ||
*.publishsettings | ||
|
||
# SQL Server files | ||
App_Data/*.mdf | ||
App_Data/*.ldf | ||
|
||
# ========================= | ||
# Windows detritus | ||
# ========================= | ||
|
||
# Windows image file caches | ||
Thumbs.db | ||
ehthumbs.db | ||
|
||
# Folder config file | ||
Desktop.ini | ||
|
||
# Recycle Bin used on file shares | ||
$RECYCLE.BIN/ | ||
|
||
# Mac desktop service store files | ||
.DS_Store | ||
|
||
# Web.Common junction | ||
*/Web.*/Common/ | ||
|
||
*.jfm | ||
*.svclog | ||
*.nupkg | ||
|
||
# nodejs | ||
node_modules | ||
|
||
# JetBrains Rider | ||
.idea/ | ||
*.sln.iml | ||
|
||
# CodeRush personal settings | ||
.cr/personal | ||
|
||
#Exclude SmartSearch files | ||
*.fdt | ||
*.fdx | ||
*.fnm | ||
*.nrm | ||
*.prx | ||
*.frq | ||
*.tii | ||
*.tis | ||
*.del | ||
*.cfs | ||
segments_2i | ||
|
||
# Generated files | ||
**/Client/dist/* | ||
|
||
**/CMSModules/WebFarm/* | ||
|
||
# Files Generated by this integration | ||
**/App_Data/RepoTemplate/* |
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,5 @@ | ||
{ | ||
"MD013": false, | ||
"MD024": false, | ||
"no-inline-html": 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,13 @@ | ||
{ | ||
"recommendations": [ | ||
"ms-dotnettools.csdevkit", | ||
"k--kato.docomment", | ||
"editorconfig.editorconfig", | ||
"davidanson.vscode-markdownlint", | ||
"tintoy.msbuild-project-tools", | ||
"esbenp.prettier-vscode", | ||
"dotjoshjohnson.xml", | ||
"dbaeumer.vscode-eslint", | ||
"ms-azure-devops.azure-pipelines" | ||
] | ||
} |
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,33 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": ".NET Core Launch (web)", | ||
"type": "coreclr", | ||
"request": "launch", | ||
"preLaunchTask": "build", | ||
"program": "${workspaceFolder}/src/Kentico.Xperience.RepoTemplate.Sample/bin/Debug/net6.0/DancingGoat.dll", | ||
"args": [], | ||
"cwd": "${workspaceFolder}/src/Kentico.Xperience.RepoTemplate.Sample", | ||
"stopAtEntry": false, | ||
"serverReadyAction": { | ||
"action": "openExternally", | ||
"pattern": "\\bNow listening on:\\s+(https?://\\S+)" | ||
}, | ||
"env": { | ||
"ASPNETCORE_ENVIRONMENT": "Development" | ||
}, | ||
"sourceFileMap": { | ||
"/Views": "${workspaceFolder}/Views" | ||
} | ||
}, | ||
{ | ||
"name": ".NET Core Attach", | ||
"type": "coreclr", | ||
"request": "attach" | ||
} | ||
] | ||
} |
Oops, something went wrong.