-
Notifications
You must be signed in to change notification settings - Fork 521
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'pd-store' into pd-store-api-test
- Loading branch information
Showing
1,186 changed files
with
14,122 additions
and
14,282 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: "pd-store" | ||
name: "hugegraph-pd-store-ci" | ||
|
||
on: | ||
push: | ||
|
@@ -8,11 +8,14 @@ on: | |
- 'test-*' | ||
pull_request: | ||
|
||
# TODO: consider merge to one ci.yml file | ||
jobs: | ||
pd: | ||
runs-on: ubuntu-latest | ||
env: | ||
USE_STAGE: 'true' # Whether to include the stage repository. | ||
# TODO: avoid duplicated env setup in pd & store | ||
USE_STAGE: 'false' # Whether to include the stage repository. | ||
# TODO: remove outdated env | ||
TRAVIS_DIR: hugegraph-server/hugegraph-dist/src/assembly/travis | ||
REPORT_DIR: target/site/jacoco | ||
|
||
|
@@ -31,9 +34,9 @@ jobs: | |
restore-keys: ${{ runner.os }}-m2 | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 | ||
fetch-depth: 5 | ||
|
||
- name: use staged maven repo settings | ||
if: ${{ env.USE_STAGE == 'true' }} | ||
|
@@ -45,29 +48,26 @@ jobs: | |
run: | | ||
mvn clean package -U -Dmaven.javadoc.skip=true -Dmaven.test.skip=true -ntp | ||
- name: Prepare env and service | ||
run: | | ||
$TRAVIS_DIR/start-pd.sh | ||
- name: Run client test | ||
- name: Run common test | ||
run: | | ||
mvn test -pl hugegraph-pd/hg-pd-test -am -P pd-client-test -Dmaven.test.failure.ignore=true | ||
mvn test -pl hugegraph-pd/hg-pd-test -am -P pd-common-test | ||
- name: Run core test | ||
run: | | ||
mvn test -pl hugegraph-pd/hg-pd-test -am -P pd-core-test -Dmaven.test.failure.ignore=true | ||
mvn test -pl hugegraph-pd/hg-pd-test -am -P pd-core-test | ||
- name: Run cli-tools test | ||
# The above tests do not require starting a PD instance. | ||
- name: Prepare env and service | ||
run: | | ||
mvn test -pl hugegraph-pd/hg-pd-test -am -P pd-cli-tools-test -Dmaven.test.failure.ignore=true | ||
$TRAVIS_DIR/start-pd.sh | ||
- name: Run common test | ||
- name: Run client test | ||
run: | | ||
mvn test -pl hugegraph-pd/hg-pd-test -am -P pd-common-test -Dmaven.test.failure.ignore=true | ||
mvn test -pl hugegraph-pd/hg-pd-test -am -P pd-client-test | ||
- name: Run service test | ||
- name: Run rest test | ||
run: | | ||
mvn test -pl hugegraph-pd/hg-pd-test -am -P pd-service-test -Dmaven.test.failure.ignore=true | ||
mvn test -pl hugegraph-pd/hg-pd-test -am -P pd-rest-test | ||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
|
@@ -78,7 +78,8 @@ jobs: | |
# TODO: avoid duplicated env setup | ||
runs-on: ubuntu-latest | ||
env: | ||
USE_STAGE: 'true' # Whether to include the stage repository. | ||
USE_STAGE: 'false' # Whether to include the stage repository. | ||
# TODO: remove outdated env | ||
TRAVIS_DIR: hugegraph-server/hugegraph-dist/src/assembly/travis | ||
REPORT_DIR: target/site/jacoco | ||
|
||
|
@@ -97,9 +98,9 @@ jobs: | |
restore-keys: ${{ runner.os }}-m2 | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 | ||
fetch-depth: 5 | ||
|
||
- name: use staged maven repo settings | ||
if: ${{ env.USE_STAGE == 'true' }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.