-
Notifications
You must be signed in to change notification settings - Fork 525
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(commons): basic adapt for commons migration
- Loading branch information
Showing
40 changed files
with
95 additions
and
1,222 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: "hugegraph-commons ci" | ||
name: "HugeGraph-Commons CI" | ||
|
||
on: | ||
workflow_dispatch: | ||
|
@@ -10,12 +10,16 @@ on: | |
pull_request: | ||
|
||
jobs: | ||
build: | ||
build-commons: | ||
runs-on: ubuntu-latest | ||
env: | ||
# TODO: reset use stage to false later | ||
USE_STAGE: 'true' # Whether to include the stage repository. | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
JAVA_VERSION: ['8', '11'] | ||
JAVA_VERSION: ['11'] | ||
|
||
steps: | ||
- name: Install JDK ${{ matrix.JAVA_VERSION }} | ||
|
@@ -36,19 +40,23 @@ jobs: | |
with: | ||
fetch-depth: 2 | ||
|
||
- name: License check(RAT) | ||
- name: Use staged maven repo settings | ||
if: ${{ env.USE_STAGE == 'true' }} | ||
run: | | ||
mvn apache-rat:check -ntp | ||
find ./ -name rat.txt -print0 | xargs -0 -I file cat file > merged-rat.txt | ||
grep "Binaries" merged-rat.txt -C 3 && cat merged-rat.txt | ||
cp $HOME/.m2/settings.xml /tmp/settings.xml | ||
cp -vf .github/configs/settings.xml $HOME/.m2/settings.xml && cat $HOME/.m2/settings.xml | ||
- name: Compile | ||
run: | | ||
mvn compile -Dmaven.javadoc.skip=true -ntp | ||
- name: Run test | ||
- name: Run common test | ||
run: | | ||
mvn test -pl hugegraph-commons/hugegraph-common -Dtest=UnitTestSuite | ||
- name: Run rpc test | ||
run: | | ||
mvn test -Dtest=UnitTestSuite | ||
mvn test -pl hugegraph-commons/hugegraph-rpc -Dtest=UnitTestSuite | ||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
|
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: "Graph PD & Store & Hstore CI" | ||
name: "HugeGraph-PD & HugeGraph-Store & HugeGraph-Hstore CI" | ||
|
||
on: | ||
push: | ||
|
@@ -14,7 +14,8 @@ jobs: | |
runs-on: ubuntu-latest | ||
env: | ||
# TODO: avoid duplicated env setup in pd & store | ||
USE_STAGE: 'false' # Whether to include the stage repository. | ||
# TODO: reset use stage to false later | ||
USE_STAGE: 'true' # Whether to include the stage repository. | ||
# TODO: remove outdated env | ||
TRAVIS_DIR: hugegraph-server/hugegraph-dist/src/assembly/travis | ||
REPORT_DIR: target/site/jacoco | ||
|
@@ -46,11 +47,11 @@ jobs: | |
- name: Run common test | ||
run: | | ||
mvn test -pl hugegraph-pd/hg-pd-test -am -P pd-common-test | ||
mvn test -pl hugegraph-pd/hg-pd-test -am -P pd-common-test -DskipCommonsTests=true | ||
- name: Run core test | ||
run: | | ||
mvn test -pl hugegraph-pd/hg-pd-test -am -P pd-core-test | ||
mvn test -pl hugegraph-pd/hg-pd-test -am -P pd-core-test -DskipCommonsTests=true | ||
# The above tests do not require starting a PD instance. | ||
|
||
|
@@ -64,11 +65,11 @@ jobs: | |
- name: Run client test | ||
run: | | ||
mvn test -pl hugegraph-pd/hg-pd-test -am -P pd-client-test | ||
mvn test -pl hugegraph-pd/hg-pd-test -am -P pd-client-test -DskipCommonsTests=true | ||
- name: Run rest test | ||
run: | | ||
mvn test -pl hugegraph-pd/hg-pd-test -am -P pd-rest-test | ||
mvn test -pl hugegraph-pd/hg-pd-test -am -P pd-rest-test -DskipCommonsTests=true | ||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
|
@@ -79,7 +80,7 @@ jobs: | |
# TODO: avoid duplicated env setup | ||
runs-on: ubuntu-latest | ||
env: | ||
USE_STAGE: 'false' # Whether to include the stage repository. | ||
USE_STAGE: 'true' # Whether to include the stage repository. | ||
# TODO: remove outdated env | ||
TRAVIS_DIR: hugegraph-server/hugegraph-dist/src/assembly/travis | ||
REPORT_DIR: target/site/jacoco | ||
|
@@ -120,27 +121,27 @@ jobs: | |
- name: Run common test | ||
run: | | ||
mvn test -pl hugegraph-store/hg-store-test -am -P store-common-test | ||
mvn test -pl hugegraph-store/hg-store-test -am -P store-common-test -DskipCommonsTests=true | ||
- name: Run client test | ||
run: | | ||
mvn test -pl hugegraph-store/hg-store-test -am -P store-client-test | ||
mvn test -pl hugegraph-store/hg-store-test -am -P store-client-test -DskipCommonsTests=true | ||
- name: Run core test | ||
run: | | ||
mvn test -pl hugegraph-store/hg-store-test -am -P store-core-test | ||
mvn test -pl hugegraph-store/hg-store-test -am -P store-core-test -DskipCommonsTests=true | ||
- name: Run rocksdb test | ||
run: | | ||
mvn test -pl hugegraph-store/hg-store-test -am -P store-rocksdb-test | ||
mvn test -pl hugegraph-store/hg-store-test -am -P store-rocksdb-test -DskipCommonsTests=true | ||
- name: Run server test | ||
run: | | ||
mvn test -pl hugegraph-store/hg-store-test -am -P store-server-test | ||
mvn test -pl hugegraph-store/hg-store-test -am -P store-server-test -DskipCommonsTests=true | ||
- name: Run raft-core test | ||
run: | | ||
mvn test -pl hugegraph-store/hg-store-test -am -P store-raftcore-test | ||
mvn test -pl hugegraph-store/hg-store-test -am -P store-raftcore-test -DskipCommonsTests=true | ||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
|
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.