You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2023/10/18 07:51:48 UTC
[incubator-opendal] 02/05: Renaming
This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch planner
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
commit 9b2b085384056a3163833ff5b7ae0d53703e63cd
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Wed Oct 18 13:14:02 2023 +0800
Renaming
Signed-off-by: Xuanwo <gi...@xuanwo.io>
---
.github/actions/{test-core => behavior_test_core}/action.yaml | 2 +-
.../workflow_planner.py => .github/scripts/behavior_test_plan.py | 0
.github/workflows/behavior_test.yml | 6 +++---
.github/workflows/{core_test.yml => behavior_test_core.yml} | 9 +++++----
4 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/.github/actions/test-core/action.yaml b/.github/actions/behavior_test_core/action.yaml
similarity index 98%
rename from .github/actions/test-core/action.yaml
rename to .github/actions/behavior_test_core/action.yaml
index 7e29b6b41..2447ac920 100644
--- a/.github/actions/test-core/action.yaml
+++ b/.github/actions/behavior_test_core/action.yaml
@@ -44,7 +44,7 @@ runs:
- name: Run Test Core
shell: bash
working-directory: core
- run: cargo nextest run behavior --archive-file=./core-test.tar.zst
+ run: cargo nextest run behavior --archive-file=./test-core.tar.zst
env:
OPENDAL_TEST: ${{ inputs.service }}
EOF
diff --git a/scripts/workflow_planner.py b/.github/scripts/behavior_test_plan.py
similarity index 100%
rename from scripts/workflow_planner.py
rename to .github/scripts/behavior_test_plan.py
diff --git a/.github/workflows/behavior_test.yml b/.github/workflows/behavior_test.yml
index bc53b4d59..04a60b022 100644
--- a/.github/workflows/behavior_test.yml
+++ b/.github/workflows/behavior_test.yml
@@ -73,12 +73,12 @@ jobs:
export GITHUB_IS_PUSH=$is_push
# Run the workflow planner script
- PLAN=$(./scripts/workflow_planner.py $files_changed)
+ PLAN=$(./.github/scripts/behavior_test_plan.py $files_changed)
echo "Plan:"
echo "$PLAN" | jq .
echo "plan=$PLAN" >> $GITHUB_OUTPUT
- core_test:
+ test_core:
name: core / ${{ matrix.os }}
needs: [plan]
if: fromJson(needs.plan.outputs.plan).components.core
@@ -86,7 +86,7 @@ jobs:
strategy:
matrix:
include: ${{ fromJson(needs.plan.outputs.plan).core }}
- uses: ./.github/workflows/core_test.yml
+ uses: ./.github/workflows/behavior_test_core.yml
with:
os: ${{ matrix.os }}
cases: ${{ toJson(matrix.cases) }}
diff --git a/.github/workflows/core_test.yml b/.github/workflows/behavior_test_core.yml
similarity index 91%
rename from .github/workflows/core_test.yml
rename to .github/workflows/behavior_test_core.yml
index 9cd213d4e..3d16b1111 100644
--- a/.github/workflows/core_test.yml
+++ b/.github/workflows/behavior_test_core.yml
@@ -56,13 +56,13 @@ jobs:
shell: bash
working-directory: core
run: |
- cargo nextest archive --features ${{ inputs.features }} --archive-file ./core-test.tar.zst
+ cargo nextest archive --features ${{ inputs.features }} --archive-file ./test-core.tar.zst
- name: Upload
uses: actions/upload-artifact@v3
with:
- name: ${{ inputs.os }}-core-test
- path: ./core/core-test.tar.zst
+ name: ${{ inputs.os }}-test-core
+ path: ./core/test-core.tar.zst
test:
name: ${{ matrix.cases.service }} / ${{ matrix.cases.setup }}
@@ -79,11 +79,12 @@ jobs:
need-nextest: true
need-protoc: true
need-rocksdb: true
+ github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Download
uses: actions/download-artifact@v3
with:
- name: ${{ inputs.os }}-core-test
+ name: ${{ inputs.os }}-test-core
path: ./core
- name: Test Core