Skip to content
62 changes: 36 additions & 26 deletions .github/workflows/theme-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,29 +220,39 @@ jobs:
run: |
echo "Jira Upload Build Info response: ${{ steps.push_build_info_to_jira.outputs.response }}"

ui-auto-tests:
needs: 'ci'
if: ${{ ((github.ref == 'refs/heads/dev') && (github.event_name == 'push')) ||
(github.base_ref == 'dev') && (github.event_name == 'pull_request') ||
(github.event_name == 'workflow_dispatch') }}
uses: VirtoCommerce/.github/.github/workflows/ui-autotests.yml@v3.800.13
with:
installModules: 'true'
installCustomModule: 'false'
platformDockerTag: 'linux-latest'
frontendZipUrl: '${{ needs.ci.outputs.artifactUrl }}'
secrets:
envPAT: ${{ secrets.REPO_TOKEN }}

deploy-cloud:
if: ${{ github.ref == 'refs/heads/dev' || github.event_name == 'pull_request'}}
needs: ci
uses: ./.github/workflows/deploy-cloud.yml
with:
cmPath: 'theme/artifact.json'
artifactKey: 'URL'
artifactUrl: ${{ needs.ci.outputs.artifactUrl }}
environmentId: ${{ ((github.event_name == 'pull_request' && github.base_ref == 'dev') || github.ref == 'refs/heads/master') && 'qa' || 'dev' }}
jiraKeys: ${{ needs.ci.outputs.jira-keys }}
forceCommit: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' }}
secrets: inherit
- name: Update Jira Tasks with Release Number
# if: ${{ github.ref == 'refs/heads/master' }}
uses: VirtoCommerce/vc-github-actions/update-jira-tasks-with-release-number@VCST-3944 #master
with:
ghRepository: ${{ github.repository }}
jiraCustomFieldId: 'customfield_10297' # 'customfield_10297' corresponds to 'Theme release' field
jiraCustomFieldValue: "${{ steps.image.outputs.prefix }}"
client-id: '${{ secrets.JIRA_USER }}'
client-secret: '${{ secrets.JIRA_TOKEN }}'

# ui-auto-tests:
# needs: 'ci'
# if: ${{ ((github.ref == 'refs/heads/dev') && (github.event_name == 'push')) ||
# (github.base_ref == 'dev') && (github.event_name == 'pull_request') ||
# (github.event_name == 'workflow_dispatch') }}
# uses: VirtoCommerce/.github/.github/workflows/ui-autotests.yml@v3.800.13
# with:
# installModules: 'true'
# installCustomModule: 'false'
# platformDockerTag: 'linux-latest'
# frontendZipUrl: '${{ needs.ci.outputs.artifactUrl }}'
# secrets:
# envPAT: ${{ secrets.REPO_TOKEN }}

# deploy-cloud:
# if: ${{ github.ref == 'refs/heads/dev' || github.event_name == 'pull_request'}}
# needs: ci
# uses: ./.github/workflows/deploy-cloud.yml
# with:
# cmPath: 'theme/artifact.json'
# artifactKey: 'URL'
# artifactUrl: ${{ needs.ci.outputs.artifactUrl }}
# environmentId: ${{ ((github.event_name == 'pull_request' && github.base_ref == 'dev') || github.ref == 'refs/heads/master') && 'qa' || 'dev' }}
# jiraKeys: ${{ needs.ci.outputs.jira-keys }}
# forceCommit: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' }}
# secrets: inherit
Loading