-
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.
* PT-2240: Add force parameter * PT-1856: Update to .Net5 * PT-2240: Use StingBuilder * PT-1856: Fix nuke update notify * VP-7499: Remove redundant condition (#3) * VCI-64: Remove tmp directory on exit * PT-1795: Add case insensitivity for module installation (#4) * PT-2099: Reset release branch if already exists (#5) * PT-1799: Update docs (#6) * VCI-74: Add workflow (#9) * VCI-74: Add workflow * VCI-74: Remove .nuke dir * VCI-74: Change vc-build version in workflow * VCI-74: Increase vc-build version * VCI-74: Increase vc-build version * VCI-74: Add PackageVersion * VCI-74: Increase vc-build version * VCI-74: Pass project type for get-image-version * VCI-74: Remove redundant step from workflow * VCI-74: Fix copyright year * VCI-80: Fix missing dlls in app_data (#7) * VCI-80: Fix modules installation * VCI-64: Fix FileNotFoundException in ClearTemp * VCI-64: Add removing of zip files after modules installation * VCI-80: Fix nuget properties when module * VCI-74: Check if modulemanifestpath is null * VCI-80: Add _build project search * VCI-95 Refactoring (#8) * Add .editorconfig * Format on save * Fix formatting and style using ReSharper Code Cleanup * Remove redundant base class * Convert all build parameters to public static properties * Fix compilation warnings * Treat warnings as errors * Fix spelling, add custom words to the dictionary * Fix naming * Make all targets public * Fix settings when building NuGet package for a module * Remove unused variables * Make properties protected * Refactoring * Fix NullreferenceException and ArgumentNullException * Move fields * Move properties * Remove commented out code * Fix spelling/grammar Co-authored-by: Alexandr Morogov <[email protected]> * VCI-108: Update changelog * VCI-108: Change GetCatalog parameter type * VCI-108: Remove redundant nuget property * VCI-108: Disable TreatWarningsAsErrors * VCI-100: vc-build - release 2.0 * VCI-98: Fix bin and obj directories search in Clean target (#10) * VCI-98: Fix bin and obj directories search in Clean target * VCI-98: Fix codesmells * VCI-100: vc-build - release 2.0 * VCI-116: Fix modules installation (#11) * VCI-100: vc-build - release 2.0 * VCI-107: Fix version downgrade issue (#12) * VCI-91: Add manifest creation from existing environment (#13) * VCI-91: Add manifest creation from existing environment * VCI-91: Fix codesmell * VCI-128: Fix codesmells (#14) * VCI-102: Add help command (#15) * VCI-102: Add help command * VCI-102: Fix codesmells * VCI-102: Make HelpProvider static * VCI-129: Make help search case insensitive * VCI-128: Fix codesmells (#16) * VCI-128: Fix long live branches list * VCI-128: Remove redundant properties Co-authored-by: Artyom Dudarev <[email protected]> Co-authored-by: Dimitri Kargapolov <[email protected]>
- Loading branch information
1 parent
53eba93
commit 9d9d186
Showing
36 changed files
with
2,328 additions
and
1,455 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,108 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 4 | ||
end_of_line = crlf | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
# JSON files | ||
[*.json] | ||
indent_size = 2 | ||
|
||
# Configuration files | ||
[*.config] | ||
indent_size = 2 | ||
|
||
#HTML files | ||
[*.htm,*.html] | ||
insert_final_newline = false | ||
|
||
# Compatibility with code generation tools | ||
[{*.csproj,*.props,app.config,packages.config,web.config}] | ||
charset = utf-8-bom | ||
indent_size = 2 | ||
insert_final_newline = false | ||
|
||
# Dotnet code style settings | ||
[*.{cs,vb}] | ||
|
||
# Sort using and Import directives with System.* appearing first | ||
dotnet_sort_system_directives_first = true | ||
|
||
# Avoid "this." and "Me." if not necessary | ||
dotnet_style_qualification_for_field = false:suggestion | ||
dotnet_style_qualification_for_property = false:suggestion | ||
dotnet_style_qualification_for_method = false:suggestion | ||
dotnet_style_qualification_for_event = false:suggestion | ||
|
||
# Use language keywords instead of framework type names for type references | ||
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion | ||
dotnet_style_predefined_type_for_member_access = true:suggestion | ||
|
||
# Use explicit accessibility modifiers | ||
dotnet_style_require_accessibility_modifiers = true:suggestion | ||
|
||
# Suggest more modern language features when available | ||
dotnet_style_object_initializer = true:suggestion | ||
dotnet_style_collection_initializer = true:suggestion | ||
dotnet_style_coalesce_expression = true:suggestion | ||
dotnet_style_null_propagation = true:suggestion | ||
dotnet_style_explicit_tuple_names = true:suggestion | ||
dotnet_prefer_inferred_tuple_names = true:suggestion | ||
dotnet_prefer_inferred_anonymous_type_member_names = true:suggestion | ||
|
||
# CSharp code style settings | ||
[*.cs] | ||
|
||
# Prefer curly braces even for one line of code | ||
csharp_prefer_braces = true:suggestion | ||
|
||
# Prefer "var" everywhere | ||
csharp_style_var_for_built_in_types = true:suggestion | ||
csharp_style_var_when_type_is_apparent = true:suggestion | ||
csharp_style_var_elsewhere = true:suggestion | ||
|
||
# Prefer method-like constructs to have a block body | ||
csharp_style_expression_bodied_methods = false:none | ||
csharp_style_expression_bodied_constructors = false:none | ||
csharp_style_expression_bodied_operators = false:none | ||
|
||
# Prefer property-like constructs to have an expression-body | ||
csharp_style_expression_bodied_properties = true:none | ||
csharp_style_expression_bodied_indexers = true:none | ||
csharp_style_expression_bodied_accessors = true:none | ||
|
||
# Suggest more modern language features when available | ||
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion | ||
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion | ||
csharp_style_inlined_variable_declaration = true:suggestion | ||
csharp_style_throw_expression = true:suggestion | ||
csharp_style_conditional_delegate_call = true:suggestion | ||
csharp_prefer_simple_default_expression = true:suggestion | ||
csharp_style_deconstructed_variable_declaration = true:suggestion | ||
csharp_style_pattern_local_over_anonymous_function = true:suggestion | ||
|
||
# Newline settings | ||
csharp_new_line_before_open_brace = all | ||
csharp_new_line_before_else = true | ||
csharp_new_line_before_catch = true | ||
csharp_new_line_before_finally = true | ||
csharp_new_line_before_members_in_object_initializers = true | ||
csharp_new_line_before_members_in_anonymous_types = true | ||
csharp_new_line_between_query_expression_clauses = true | ||
|
||
csharp_indent_case_contents = true | ||
csharp_indent_switch_labels = true | ||
csharp_indent_labels = flush_left | ||
|
||
csharp_space_after_cast = false | ||
csharp_space_after_keywords_in_control_flow_statements = true | ||
csharp_space_between_method_declaration_parameter_list_parentheses = false | ||
csharp_space_between_method_call_parameter_list_parentheses = false | ||
csharp_space_between_parentheses = false | ||
|
||
csharp_preserve_single_line_statements = false | ||
csharp_preserve_single_line_blocks = true |
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,103 @@ | ||
name: vc-build CI | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
paths-ignore: | ||
- '.github/**' | ||
- 'docs/**' | ||
- 'build/**' | ||
- 'README.md' | ||
- 'LICENSE' | ||
branches: | ||
[main, dev] | ||
pull_request: | ||
branches: | ||
[main, dev] | ||
paths-ignore: | ||
- 'docs/**' | ||
- 'README.md' | ||
- 'LICENSE' | ||
|
||
jobs: | ||
ci: | ||
runs-on: ubuntu-latest | ||
env: | ||
SONAR_TOKEN: ${{secrets.SONAR_TOKEN}} | ||
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }} | ||
NUGET_KEY: ${{ secrets.NUGET_KEY }} | ||
BLOB_SAS: ${{ secrets.BLOB_TOKEN }} | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install VirtoCommerce.GlobalTool | ||
run: dotnet tool install --global VirtoCommerce.GlobalTool --version 2.0.0-beta0010 | ||
|
||
- name: Install dotnet-sonarscanner | ||
run: dotnet tool install --global dotnet-sonarscanner | ||
|
||
- name: Get changelog | ||
id: changelog | ||
uses: VirtoCommerce/vc-github-actions/changelog-generator@master | ||
|
||
- name: Get Image Version | ||
uses: VirtoCommerce/vc-github-actions/get-image-version@master | ||
id: image | ||
with: | ||
projectType: "platform" | ||
|
||
- name: Add version suffix | ||
if: ${{ github.ref != 'refs/heads/main' }} | ||
uses: VirtoCommerce/vc-github-actions/add-version-suffix@master | ||
with: | ||
versionSuffix: ${{ steps.image.outputs.suffix }} | ||
|
||
- name: SonarCloud Begin | ||
uses: VirtoCommerce/vc-github-actions/sonar-scanner-begin@master | ||
|
||
- name: Build | ||
run: vc-build Compile | ||
|
||
- name: Unit Tests | ||
run: vc-build Test -skip | ||
|
||
- name: SonarCloud End | ||
uses: VirtoCommerce/vc-github-actions/sonar-scanner-end@master | ||
|
||
- name: Quality Gate | ||
uses: VirtoCommerce/vc-github-actions/sonar-quality-gate@master | ||
with: | ||
login: ${{secrets.SONAR_TOKEN}} | ||
|
||
- name: Publish Nuget | ||
if: ${{ (github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main') && github.event_name != 'workflow_dispatch' }} | ||
uses: VirtoCommerce/vc-github-actions/publish-nuget@master | ||
|
||
- name: Create Release | ||
if: ${{ (github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main') && github.event_name != 'workflow_dispatch' }} | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | ||
with: | ||
tag_name: ${{ steps.image.outputs.shortVersion }} | ||
release_name: ${{ steps.image.outputs.shortVersion }} | ||
body: ${{ steps.changelog.outputs.changelog }} | ||
draft: false | ||
prerelease: ${{ github.ref != 'refs/heads/main' }} | ||
|
||
- name: Upload Release Asset | ||
if: ${{ (github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main') && github.event_name != 'workflow_dispatch' }} | ||
id: upload-release-asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps | ||
asset_path: artifacts/VirtoCommerce.GlobalTool.${{ steps.image.outputs.shortVersion }}.nupkg | ||
asset_name: VirtoCommerce.GlobalTool.${{ steps.image.outputs.shortVersion }}.nupkg | ||
asset_content_type: application/zip |
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 |
---|---|---|
@@ -1 +1 @@ | ||
VirtoCommerce.Platform.sln | ||
VirtoCommerce.Build.sln |
Oops, something went wrong.