1- # v3.800.12
2- # https://virtocommerce.atlassian.net/browse/VCST-2469
1+ # v3.800.13
2+ # https://virtocommerce.atlassian.net/browse/VCST-2789
33name : Module CI
44
55on :
5454 moduleId : ${{ steps.artifact_ver.outputs.moduleId }}
5555 matrix : ${{ steps.deployment-matrix.outputs.matrix }}
5656 run-e2e : ${{ steps.run-e2e.outputs.result }}
57+ run-ui-tests : ${{ steps.run-ui-tests.outputs.result }}
5758
5859 steps :
5960
9899 else
99100 echo "VERSION_SUFFIX=${{ steps.artifact_ver.outputs.suffix }}" >> $GITHUB_ENV
100101 fi;
102+
101103 - name : Add version suffix
102104 if : ${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/main' }}
103105 uses : VirtoCommerce/vc-github-actions/add-version-suffix@master
@@ -191,6 +193,27 @@ jobs:
191193 echo "result=true" >> $GITHUB_OUTPUT
192194 fi
193195
196+ - name : Look for xapi module in dependencies
197+ id : run-ui-tests
198+ shell : pwsh
199+ run : |
200+ $manifestFile = Get-ChildItem -Path ${{ github.workspace }} -Recurse -Filter "module.manifest" | Where-Object { $_.FullName -like "*/src/*/module.manifest" } | Select-Object -First 1
201+ if (-not $manifestFile) {
202+ Write-Error "No module.manifest file found in src subdirectories"
203+ exit 1
204+ }
205+ Write-Host "Found module.manifest at: $($manifestFile.FullName)"
206+ $manifestContent = Get-Content $manifestFile.FullName -Raw
207+ $containsXapi = 'false'
208+ $dependecies = $(Select-Xml -Content $manifestContent -XPath "//dependencies").Node.dependency
209+ foreach ($dependency in $dependecies) {
210+ if ($dependency.id -eq 'VirtoCommerce.Xapi') {
211+ Write-Host "Found VirtoCommerce.Xapi in dependencies"
212+ $containsXapi = 'true'
213+ }
214+ }
215+ echo "result=$containsXapi" >> $env:GITHUB_OUTPUT
216+
194217 - name : Setup Git Credentials
195218 if : ${{ (github.ref == 'refs/heads/dev' && github.event_name != 'workflow_dispatch') || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' }}
196219 uses : VirtoCommerce/vc-github-actions/setup-git-credentials-github@master
@@ -237,11 +260,25 @@ jobs:
237260 run : |
238261 echo "Jira Upload Build Info response: ${{ steps.push_build_info_to_jira.outputs.response }}"
239262
263+ ui-auto-tests :
264+ if : ${{ ((github.ref == 'refs/heads/dev') && (github.event_name == 'push')) ||
265+ (github.event_name == 'workflow_dispatch') || ((github.base_ref == 'dev') && (github.event_name == 'pull_request')) }}
266+ needs : ' ci'
267+ uses : VirtoCommerce/.github/.github/workflows/ui-autotests.yml@v3.800.13
268+ with :
269+ installModules : ' false'
270+ installCustomModule : ' true'
271+ customModuleId : ${{ needs.ci.outputs.moduleId }}
272+ customModuleUrl : ${{ needs.ci.outputs.artifactUrl }}
273+ runTests : ${{ needs.ci.outputs.run-ui-tests }}
274+ secrets :
275+ envPAT : ${{ secrets.REPO_TOKEN }}
276+
240277 module-katalon-tests :
241278 if : ${{ ((github.ref == 'refs/heads/dev') && (github.event_name == 'push') && (needs.ci.outputs.run-e2e == 'true')) ||
242279 (github.event_name == 'workflow_dispatch') || (github.base_ref == 'dev') && (github.event_name == 'pull_request') }}
243280 needs : ' ci'
244- uses : VirtoCommerce/.github/.github/workflows/e2e.yml@v3.800.12
281+ uses : VirtoCommerce/.github/.github/workflows/e2e.yml@v3.800.13
245282 with :
246283 katalonRepo : ' VirtoCommerce/vc-quality-gate-katalon'
247284 katalonRepoBranch : ' dev'
@@ -259,7 +296,7 @@ jobs:
259296 deploy-cloud :
260297 if : ${{ (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev') && github.event_name == 'push' }}
261298 needs : ci
262- uses : VirtoCommerce/.github/.github/workflows/deploy-cloud.yml@v3.800.12
299+ uses : VirtoCommerce/.github/.github/workflows/deploy-cloud.yml@v3.800.13
263300 with :
264301 releaseSource : module
265302 moduleId : ${{ needs.ci.outputs.moduleId }}
@@ -268,4 +305,4 @@ jobs:
268305 jiraKeys : ${{ needs.ci.outputs.jira-keys }}
269306 argoServer : ' argo.virtocommerce.cloud'
270307 matrix : ' {"include":${{ needs.ci.outputs.matrix }}}'
271- secrets : inherit
308+ secrets : inherit
0 commit comments