Skip to content

Commit 5b66273

Browse files
committed
[Refactor + Breaking Change] (config) Refactor the getting test items shell script path and modify the use shell script checks the getting output.
1 parent 5cf6481 commit 5b66273

File tree

5 files changed

+15
-30
lines changed

5 files changed

+15
-30
lines changed

.github/workflows/test_gh_reusable_workflow.yaml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,7 @@ jobs:
4949
- uses: actions/checkout@v2
5050

5151
- name: Check it whether get the output of previous one job which has version info or not
52-
run: |
53-
release_version=$(echo $RELEASE_TYPE)
54-
if [ "$release_version" != "" ]; then
55-
echo "It gets data which is release version info!"
56-
exit 0
57-
else
58-
echo "It doesn't get any data which is release version info."
59-
exit 1
60-
fi
52+
run: bash scripts/ci/check_getting_output.sh
6153

6254
- name: Create new git branch by the tagged commit
6355
run: bash ./scripts/ci/deployment_new_version_workflow.sh 'true'

.github/workflows/test_python_project_ci_multi-tests.yaml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ jobs:
3232
# name: Prepare all unit test items
3333
uses: ./.github/workflows/prepare_test_items.yaml
3434
with:
35-
shell_path: scripts/ci/get-unit-test-paths.sh
35+
shell_path: scripts/ci/test/get-unit-test-paths.sh
3636
shell_arg: unix
3737

3838

3939
prep-testbed_integration-test:
4040
# name: Prepare all integration test items
4141
uses: ./.github/workflows/prepare_test_items.yaml
4242
with:
43-
shell_path: scripts/ci/get-integration-test-paths.sh
43+
shell_path: scripts/ci/test/get-integration-test-paths.sh
4444
shell_arg: unix
4545

4646

@@ -154,15 +154,7 @@ jobs:
154154
RELEASE_TYPE: ${{ needs.build_git-tag_and_create_github-release.outputs.python_release_version }}
155155
steps:
156156
- name: Check it whether get the output of previous one job which has version info or not
157-
run: |
158-
release_version=$(echo $RELEASE_TYPE)
159-
if [ "$release_version" != "" ]; then
160-
echo "It gets data which is release version info!"
161-
exit 0
162-
else
163-
echo "It doesn't get any data which is release version info."
164-
exit 1
165-
fi
157+
run: bash scripts/ci/check_getting_output.sh
166158

167159
- name: For testing about getting the software version info
168160
run: |

.github/workflows/test_python_project_ci_one-test.yaml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
# name: Prepare all unit test items
3232
uses: ./.github/workflows/prepare_test_items.yaml
3333
with:
34-
shell_path: scripts/ci/get-unit-test-paths.sh
34+
shell_path: scripts/ci/test/get-unit-test-paths.sh
3535
shell_arg: unix
3636

3737

@@ -123,15 +123,16 @@ jobs:
123123
RELEASE_TYPE: ${{ needs.build_git-tag_and_create_github-release.outputs.python_release_version }}
124124
steps:
125125
- name: Check it whether get the output of previous one job which has version info or not
126-
run: |
127-
release_version=$(echo $RELEASE_TYPE)
128-
if [ "$release_version" != "" ]; then
129-
echo "It gets data which is release version info!"
130-
exit 0
131-
else
132-
echo "It doesn't get any data which is release version info."
133-
exit 1
134-
fi
126+
run: bash scripts/ci/check_getting_output.sh
127+
# run: |
128+
# release_version=$(echo $RELEASE_TYPE)
129+
# if [ "$release_version" != "" ]; then
130+
# echo "📬🎉🍻 It gets data which is release version info!"
131+
# exit 0
132+
# else
133+
# echo "📭🙈 It doesn't get any data which is release version info."
134+
# exit 1
135+
# fi
135136

136137
- name: For testing about getting the software version info
137138
run: |
File renamed without changes.

0 commit comments

Comments
 (0)