Skip to content

Commit

Permalink
Merge branch 'dev' into feature/ba-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegoO committed Jun 8, 2021
2 parents 9222b55 + 3354153 commit 1d7905f
Show file tree
Hide file tree
Showing 137 changed files with 3,941 additions and 1,015 deletions.
136 changes: 0 additions & 136 deletions .github/workflows/delivery.yml

This file was deleted.

26 changes: 15 additions & 11 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ name: Platform E2E

on:
workflow_dispatch:
inputs:
testSuite:
description: "Test Suite"
required: false
default: "Test Suites/Platform_start"

pull_request:
paths-ignore:
Expand All @@ -19,13 +14,12 @@ on:

jobs:
e2e-tests:
runs-on: ubuntu-latest
runs-on: ubuntu-18.04
env:
SONAR_TOKEN: ${{secrets.SONAR_TOKEN}}
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}
NUGET_KEY: ${{ secrets.NUGET_KEY }}
BLOB_SAS: ${{ secrets.BLOB_TOKEN }}
DEFAULT_TEST_SUITE: "Test Suites/Platform_start"

steps:
- uses: actions/checkout@v2
Expand All @@ -38,7 +32,7 @@ jobs:
dotnet-version: '3.1.x'

- name: Install VirtoCommerce.GlobalTool
run: dotnet tool install --global VirtoCommerce.GlobalTool
uses: VirtoCommerce/vc-github-actions/setup-vcbuild@master

- name: Get Image Version
uses: VirtoCommerce/vc-github-actions/get-image-version@master
Expand Down Expand Up @@ -78,14 +72,24 @@ jobs:

- name: Getting tests
shell: sh
run: git clone https://github.com/VirtoCommerce/vc-quality-gate-katalon.git
run: git clone https://github.com/VirtoCommerce/vc-quality-gate-katalon.git --branch dev

- name: Katalon Studio Github Action
uses: katalon-studio/katalon-studio-github-action@v2.2
uses: VirtoCommerce/vc-github-actions/katalon-studio-github-action@master
with:
version: '7.5.5'
projectPath: '${{ github.workspace }}/vc-quality-gate-katalon/platform_storefront.prj'
args: '-noSplash -retry=0 -testSuitePath="${{ github.event.inputs.testSuite || env.DEFAULT_TEST_SUITE }}" -browserType="Chrome" -apiKey= ${{ secrets.KATALON_API_KEY }} -g_urlBack="http://localhost:8090" -g_urlFront="http://localhost:8080" -executionProfile="default"'
args: '-noSplash -retry=0 -testSuiteCollectionPath="Test Suites/Modules/Platform_collection" -browserType="Chrome" -apiKey= ${{ secrets.KATALON_API_KEY }} -g_urlBack="http://localhost:8090" -g_urlFront="http://localhost:8080" -executionProfile="default"'

- name: 'Katalon Reports'
if: always()
uses: actions/upload-artifact@v2
with:
name: reports
path: |
vc-quality-gate-katalon/Reports
/home/runner/.katalon/*/Katalon_Studio_Engine_Linux_*/configuration/*.log.
retention-days: 5

- name: Katalon Report to PR
if: ${{ ( success() || failure() ) && github.event_name == 'pull_request' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ on:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
ci:
runs-on: ubuntu-latest
runs-on: ubuntu-18.04
env:
SONAR_TOKEN: ${{secrets.SONAR_TOKEN}}
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker Environment + OWASP
name: Platform OWASP ZAP
on:
push:
paths-ignore:
Expand Down
78 changes: 78 additions & 0 deletions .github/workflows/regression-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
name: Regression PR

on:
push:
paths-ignore:
- '.github/**'
- 'docs/**'
- 'build/**'
- 'README.md'
- 'LICENSE'
branches: [ dev ]

jobs:
check-label:
runs-on: ubuntu-latest
outputs:
isLabeled: ${{ steps.checkLabel.outputs.isLabeled }}
pullNumber: ${{ steps.checkLabel.outputs.pullNumber }}
pullUrl: ${{ steps.checkLabel.outputs.pullUrl }}

steps:
- name: Check regression label
id: checkLabel
uses: VirtoCommerce/vc-github-actions/check-pr-regression-label@PT-802
with:
githubToken: ${{ secrets.REPO_TOKEN }}
label: regression
commitMessage: ${{ github.event.head_commit.message }}

cherry-pick:
needs: check-label
if: ${{ needs.check-label.outputs.isLabeled == 'true'}}
env:
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}
INPUT_TARGETBRANCH: "regression"
PR_BRANCH: ""
PR_TITLE: ""
PR_BODY: ""
TARGETBRANCH_EXISTS: "false"
runs-on: ubuntu-latest
steps:
- name: Set PR_BRANCH PR_TITLE PR_BODY
run: |
echo "PR_BRANCH=cherry-pick/${{ needs.check-label.outputs.pullNumber }}" >> $GITHUB_ENV
echo "PR_TITLE=PR-${{ needs.check-label.outputs.pullNumber }}-regression-cherry-pick" >> $GITHUB_ENV
echo "PR_BODY=Automated cherry-pick update from PR ${{ needs.check-label.outputs.pullUrl}}" >> $GITHUB_ENV
- name: checkout
uses: actions/checkout@v1

- uses: VirtoCommerce/vc-github-actions/setup-git-credentials-github@master
with:
githubToken: ${{ secrets.REPO_TOKEN }}

- name: Check INPUT_TARGETBRANCH exists
run: |
existed_in_remote=$(git ls-remote --heads origin "${INPUT_TARGETBRANCH}")
if [[ -z ${existed_in_remote} ]]; then
echo "TARGETBRANCH_EXISTS=false" >> $GITHUB_ENV
else
echo "TARGETBRANCH_EXISTS=true" >> $GITHUB_ENV
fi
- name: Cherry-pick and create PR
if: ${{env.TARGETBRANCH_EXISTS == 'true' }}
run: |
echo "-remote update"
git remote update
echo "-fetch --all"
git fetch --all
echo "-checkout"
git checkout -b "${PR_BRANCH}" "origin/${INPUT_TARGETBRANCH}"
echo "-cherry-pick"
git cherry-pick "${GITHUB_SHA}"
echo "-push"
git push -u origin "${PR_BRANCH}"
echo "-Create PR"
hub pull-request -b "${INPUT_TARGETBRANCH}" -h "${PR_BRANCH}" -m "${PR_TITLE}" -m "${PR_BODY}"
85 changes: 0 additions & 85 deletions .github/workflows/release-alpha.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</PropertyGroup>

<PropertyGroup>
<VersionPrefix>3.45.0</VersionPrefix>
<VersionPrefix>3.54.0</VersionPrefix>
<VersionSuffix></VersionSuffix>
<VersionSuffix Condition=" '$(VersionSuffix)' != '' AND '$(BuildNumber)' != '' ">$(VersionSuffix)-$(BuildNumber)</VersionSuffix>
<NoWarn>$(NoWarn);S3875</NoWarn>
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Share on Facebook](https://img.shields.io/badge/facebook--blue.svg?style=social&label=Share&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSIyNjYuODkzcHgiIGhlaWdodD0iMjY2Ljg5NXB4IiB2aWV3Qm94PSIwIDAgMjY2Ljg5MyAyNjYuODk1IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCAyNjYuODkzIDI2Ni44OTUiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGlkPSJCbHVlXzFfIiBmaWxsPSIjM0M1QTk5IiBkPSJNMjQ4LjA4MiwyNjIuMzA3YzcuODU0LDAsMTQuMjIzLTYuMzY5LDE0LjIyMy0xNC4yMjVWMTguODEyYzAtNy44NTctNi4zNjgtMTQuMjI0LTE0LjIyMy0xNC4yMjRIMTguODEyYy03Ljg1NywwLTE0LjIyNCw2LjM2Ny0xNC4yMjQsMTQuMjI0djIyOS4yN2MwLDcuODU1LDYuMzY2LDE0LjIyNSwxNC4yMjQsMTQuMjI1SDI0OC4wODJ6Ii8%2BPHBhdGggaWQ9ImYiIGZpbGw9IiNGRkZGRkYiIGQ9Ik0xODIuNDA5LDI2Mi4zMDd2LTk5LjgwM2gzMy40OTlsNS4wMTYtMzguODk1aC0zOC41MTVWOTguNzc3YzAtMTEuMjYxLDMuMTI3LTE4LjkzNSwxOS4yNzUtMTguOTM1bDIwLjU5Ni0wLjAwOVY0NS4wNDVjLTMuNTYyLTAuNDc0LTE1Ljc4OC0xLjUzMy0zMC4wMTItMS41MzNjLTI5LjY5NSwwLTUwLjAyNSwxOC4xMjYtNTAuMDI1LDUxLjQxM3YyOC42ODRoLTMzLjU4NXYzOC44OTVoMzMuNTg1djk5LjgwM0gxODIuNDA5eiIvPjwvc3ZnPg%3D%3D)](https://www.facebook.com/sharer.php?u=https://virtocommerce.com)&nbsp;[![Tweet](https://img.shields.io/twitter/url/https/virtocommerce.com.svg?style=social)](https://twitter.com/intent/tweet?text=%23VirtoCommerce%20puts%20the%20best%20of%20MS%20Azure%20Cloud%2C%20open%20source%20.Net%20code%20and%20agile%20development%20in%20a%20single%20enterprise%20%23ecommerce%20platform.) [![Latest release](https://img.shields.io/github/release/VirtoCommerce/vc-platform.svg)](https://github.com/VirtoCommerce/vc-platform/releases/latest) [![Total downloads](https://img.shields.io/github/downloads/VirtoCommerce/vc-platform/total.svg?colorB=007ec6)](https://github.com/VirtoCommerce/vc-platform/releases) [![License](https://img.shields.io/badge/license-VC%20OSL-blue.svg)](https://virtocommerce.com/open-source-license)

[![CI status](https://github.com/VirtoCommerce/vc-platform/workflows/Platform%20CI/badge.svg?branch=dev)](https://github.com/VirtoCommerce/vc-platform/actions?query=workflow%3A"Platform+CI") [![Quality gate](https://sonarcloud.io/api/project_badges/measure?project=VirtoCommerce_vc-platform&metric=alert_status&branch=dev)](https://sonarcloud.io/dashboard?id=VirtoCommerce_vc-platform) [![Reliability rating](https://sonarcloud.io/api/project_badges/measure?project=VirtoCommerce_vc-platform&metric=reliability_rating&branch=dev)](https://sonarcloud.io/dashboard?id=VirtoCommerce_vc-platform) [![Security rating](https://sonarcloud.io/api/project_badges/measure?project=VirtoCommerce_vc-platform&metric=security_rating&branch=dev)](https://sonarcloud.io/dashboard?id=VirtoCommerce_vc-platform) [![Sqale rating](https://sonarcloud.io/api/project_badges/measure?project=VirtoCommerce_vc-platform&metric=sqale_rating&branch=dev)](https://sonarcloud.io/dashboard?id=VirtoCommerce_vc-platform) [![Lines of code](https://sonarcloud.io/api/project_badges/measure?project=VirtoCommerce_vc-platform&metric=ncloc&branch=dev)](https://sonarcloud.io/dashboard?id=VirtoCommerce_vc-platform)&emsp;
[![CI status](https://github.com/VirtoCommerce/vc-platform/workflows/Platform%20CI/badge.svg?branch=master)](https://github.com/VirtoCommerce/vc-platform/actions?query=workflow%3A"Platform+CI") [![Quality gate](https://sonarcloud.io/api/project_badges/measure?project=VirtoCommerce_vc-platform&metric=alert_status&branch=dev)](https://sonarcloud.io/dashboard?id=VirtoCommerce_vc-platform) [![Reliability rating](https://sonarcloud.io/api/project_badges/measure?project=VirtoCommerce_vc-platform&metric=reliability_rating&branch=dev)](https://sonarcloud.io/dashboard?id=VirtoCommerce_vc-platform) [![Security rating](https://sonarcloud.io/api/project_badges/measure?project=VirtoCommerce_vc-platform&metric=security_rating&branch=dev)](https://sonarcloud.io/dashboard?id=VirtoCommerce_vc-platform) [![Sqale rating](https://sonarcloud.io/api/project_badges/measure?project=VirtoCommerce_vc-platform&metric=sqale_rating&branch=dev)](https://sonarcloud.io/dashboard?id=VirtoCommerce_vc-platform) [![Lines of code](https://sonarcloud.io/api/project_badges/measure?project=VirtoCommerce_vc-platform&metric=ncloc&branch=dev)](https://sonarcloud.io/dashboard?id=VirtoCommerce_vc-platform)&emsp;

[![Documentation](https://img.shields.io/badge/docs-read-brightgreen.svg)](https://virtocommerce.com/docs)&nbsp;[![Discourse topics](https://img.shields.io/discourse/topics?label=community&logo=community&server=http%3A%2F%2Fcommunity.virtocommerce.com)](https://community.virtocommerce.com) [![Contributors](https://img.shields.io/github/contributors/VirtoCommerce/vc-platform.svg)](https://github.com/VirtoCommerce/vc-platform/graphs/contributors)

Expand Down
Loading

0 comments on commit 1d7905f

Please sign in to comment.