Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vcst: 1738 #92

Closed
wants to merge 36 commits into from
Closed
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
ef2d135
Empty commit for test
AndrewEhlo Sep 13, 2024
c6279e8
Empty commit
AndrewEhlo Sep 16, 2024
0eff679
Use branch for workflow test
AndrewEhlo Sep 20, 2024
a2821af
Fix typo
AndrewEhlo Sep 20, 2024
a22f17e
VCST-17
AndrewEhlo Sep 23, 2024
10989b6
VCST-1738: Revert changes
AndrewEhlo Sep 23, 2024
d43e888
VCST-1738: Get called workflow output
AndrewEhlo Sep 23, 2024
e093bf3
VCST-1738: Fix output reference
AndrewEhlo Sep 23, 2024
1d2a56c
VCST-1738: Add extra job to get status
AndrewEhlo Sep 23, 2024
305dfcf
VCST-1738: Fix indentation
AndrewEhlo Sep 23, 2024
92311fe
VCST-1738: Fix syntax
AndrewEhlo Sep 23, 2024
316d496
VCST-1738: Try an API to report status
AndrewEhlo Sep 23, 2024
518a3ae
VCST-1738: Use v7 for gh script
AndrewEhlo Sep 23, 2024
3a311c9
VCST-1738: Temporary disable payload
AndrewEhlo Sep 23, 2024
70603fa
VCST-1738: Check commit sha variable
AndrewEhlo Sep 24, 2024
bbf0f78
VCST-1738: Enable tests step
AndrewEhlo Sep 24, 2024
4db20b3
VCST-1738: Fix GITHUB_SHA syntax
AndrewEhlo Sep 24, 2024
0aee22d
VCST-1738: Remove triger
AndrewEhlo Sep 24, 2024
9cc4558
VCST-1738: Use env variable
AndrewEhlo Sep 24, 2024
10652ea
VCST-1738: Reformat check step
AndrewEhlo Sep 24, 2024
adcc75f
VCST-1783: Enable all steps for testing triggered workflow run
AndrewEhlo Sep 24, 2024
973c97f
VCST-1738: Temporary disable sonar
AndrewEhlo Sep 24, 2024
6474b5f
VCST-1738: Temporary disable condition for e3e tests
AndrewEhlo Sep 24, 2024
abc1fc0
VCST-1738: Add condition for e2e on commit message
AndrewEhlo Sep 24, 2024
0990ecd
VCST-1738: Fix condition for e2e
AndrewEhlo Sep 24, 2024
d89c47e
VCST-1738: Add debug print
AndrewEhlo Sep 24, 2024
1b6f1d5
VCST-1738: Add a step to get commit message [run e2e]
AndrewEhlo Sep 24, 2024
f1c8139
VCST-1738: Add logging [run e2e]
AndrewEhlo Sep 24, 2024
9c4a25d
VCST-1738: Add checkout [run e2e]
AndrewEhlo Sep 24, 2024
8a4507c
VCST-1738: Check commit message without e2e tag
AndrewEhlo Sep 24, 2024
1a6225a
VCST-1738: Enable sonar steps [run e2e]
AndrewEhlo Sep 24, 2024
0ede836
VCST-1738: Step rename
AndrewEhlo Sep 25, 2024
4c8fa20
VCST-1738: Add comments [run e2e]
AndrewEhlo Sep 25, 2024
d225f13
VCST-1738: Step rename
AndrewEhlo Sep 25, 2024
e593278
VCST-1738: Change condition for e2e
AndrewEhlo Sep 25, 2024
5eb0c8e
VCST-1738: Enable PR workflow trigger
AndrewEhlo Nov 1, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 18 additions & 6 deletions .github/workflows/module-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ on:
[master, main, dev]
pull_request:
branches:
[master, main, dev]
[master, main, dev, VCST-1738]
paths-ignore:
# - '.github/**'
- 'docs/**'
- 'build/**'
- 'README.md'
Expand Down Expand Up @@ -54,6 +55,7 @@ jobs:
moduleId: ${{ steps.artifact_ver.outputs.moduleId }}
matrix: ${{ steps.deployment-matrix.outputs.matrix }}
run-e2e: ${{ steps.run-e2e.outputs.result }}
head-commit-message: ${{ steps.get_head_commit_message.outputs.HEAD_COMMIT_MESSAGE }}

steps:

Expand Down Expand Up @@ -237,12 +239,22 @@ jobs:
run: |
echo "Jira Upload Build Info response: ${{ steps.push_build_info_to_jira.outputs.response }}"

# - name: Checkout current commit #for parsing commit message for the e2e tests condition
# uses: actions/checkout@v4
# with:
# ref: ${{ github.event.pull_request.head.sha }}

# - name: Get current commit #for parsing commit message for the e2e tests condition
# id: get_head_commit_message
# run: |
# echo "HEAD_COMMIT_MESSAGE=$(git show -s --format=%s)" >> "$GITHUB_OUTPUT"
# echo "HEAD_COMMIT_MESSAGE=$(git show -s --format=%s)"

module-katalon-tests:
if: ${{ ((github.ref == 'refs/heads/dev') && (github.event_name == 'push') && (needs.ci.outputs.run-e2e == 'true')) ||
(github.event_name == 'workflow_dispatch')}}
# if: ${{ ((github.ref == 'refs/heads/dev') && (github.event_name == 'push') && (needs.ci.outputs.run-e2e == 'true')) || (github.event_name == 'workflow_dispatch') || (contains(needs.ci.outputs.head-commit-message, '[run e2e]'))}}
if: ${{ (github.event_name == 'workflow_dispatch') || (github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'dev') }}
needs: 'ci'
uses: VirtoCommerce/.github/.github/workflows/[email protected]

uses: VirtoCommerce/.github/.github/workflows/e2e.yml@VCST-1738
with:
katalonRepo: 'VirtoCommerce/vc-quality-gate-katalon'
katalonRepoBranch: 'dev'
Expand All @@ -256,7 +268,7 @@ jobs:
secrets:
envPAT: ${{ secrets.REPO_TOKEN }}
katalonApiKey: ${{ secrets.KATALON_API_KEY }}

deploy-cloud:
if: ${{ (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev') && github.event_name == 'push' }}
needs: ci
Expand Down
Loading