Skip to content

Commit b6e37bb

Browse files
committed
ci: Auto update Github Action workflows
1 parent c83c633 commit b6e37bb

File tree

4 files changed

+55
-18
lines changed

4 files changed

+55
-18
lines changed

.github/workflows/module-ci.yml

Lines changed: 42 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# v3.800.12
2-
# https://virtocommerce.atlassian.net/browse/VCST-2469
1+
# v3.800.13
2+
# https://virtocommerce.atlassian.net/browse/VCST-2789
33
name: Module CI
44

55
on:
@@ -54,6 +54,7 @@ jobs:
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

@@ -98,6 +99,7 @@ jobs:
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

.github/workflows/module-release-hotfix.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# v3.800.12
2-
# https://virtocommerce.atlassian.net/browse/VCST-2469
1+
# v3.800.13
2+
# https://virtocommerce.atlassian.net/browse/VCST-2789
33
name: Release hotfix
44

55
on:
@@ -13,12 +13,12 @@ on:
1313

1414
jobs:
1515
test:
16-
uses: VirtoCommerce/.github/.github/workflows/test-and-sonar.yml@v3.800.12
16+
uses: VirtoCommerce/.github/.github/workflows/test-and-sonar.yml@v3.800.13
1717
secrets:
1818
sonarToken: ${{ secrets.SONAR_TOKEN }}
1919

2020
build:
21-
uses: VirtoCommerce/.github/.github/workflows/build.yml@v3.800.12
21+
uses: VirtoCommerce/.github/.github/workflows/build.yml@v3.800.13
2222
with:
2323
uploadPackage: 'true'
2424
uploadDocker: 'false'
@@ -46,7 +46,7 @@ jobs:
4646
publish-github-release:
4747
needs:
4848
[build, test, get-metadata]
49-
uses: VirtoCommerce/.github/.github/workflows/publish-github.yml@v3.800.12
49+
uses: VirtoCommerce/.github/.github/workflows/publish-github.yml@v3.800.13
5050
with:
5151
fullKey: ${{ needs.build.outputs.packageFullKey }}
5252
changeLog: '${{ needs.get-metadata.outputs.changeLog }}'

.github/workflows/publish-nugets.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# v3.800.12
2-
# https://virtocommerce.atlassian.net/browse/VCST-2469
1+
# v3.800.13
2+
# https://virtocommerce.atlassian.net/browse/VCST-2789
33
name: Publish nuget
44

55
on:
@@ -13,12 +13,12 @@ on:
1313

1414
jobs:
1515
test:
16-
uses: VirtoCommerce/.github/.github/workflows/test-and-sonar.yml@v3.800.12
16+
uses: VirtoCommerce/.github/.github/workflows/test-and-sonar.yml@v3.800.13
1717
secrets:
1818
sonarToken: ${{ secrets.SONAR_TOKEN }}
1919

2020
build:
21-
uses: VirtoCommerce/.github/.github/workflows/build.yml@v3.800.12
21+
uses: VirtoCommerce/.github/.github/workflows/build.yml@v3.800.13
2222
with:
2323
uploadPackage: 'true'
2424
uploadDocker: 'false'
@@ -29,7 +29,7 @@ jobs:
2929
publish-nuget:
3030
needs:
3131
[build, test]
32-
uses: VirtoCommerce/.github/.github/workflows/publish-github.yml@v3.800.12
32+
uses: VirtoCommerce/.github/.github/workflows/publish-github.yml@v3.800.13
3333
with:
3434
fullKey: ${{ needs.build.outputs.packageFullKey }}
3535
forceGithub: false

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# v3.800.12
2-
# https://virtocommerce.atlassian.net/browse/VCST-2469
1+
# v3.800.13
2+
# https://virtocommerce.atlassian.net/browse/VCST-2789
33
name: Release
44

55
on:
66
workflow_dispatch:
77

88
jobs:
99
release:
10-
uses: VirtoCommerce/.github/.github/workflows/release.yml@v3.800.12
10+
uses: VirtoCommerce/.github/.github/workflows/release.yml@v3.800.13
1111
secrets:
1212
envPAT: ${{ secrets.REPO_TOKEN }}

0 commit comments

Comments
 (0)