feat(pd): integrate pd-service
into hugegraph
#31
Workflow file for this run
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
name: "hugegraph-pd-store-ci" | |
on: | |
push: | |
branches: | |
- master | |
- 'release-*' | |
- 'test-*' | |
pull_request: | |
# TODO: consider merge to one ci.yml file | |
jobs: | |
pd: | |
runs-on: ubuntu-latest | |
env: | |
# 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 | |
steps: | |
- name: Install JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'zulu' | |
- name: Cache Maven packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 5 | |
- name: use staged maven repo settings | |
if: ${{ env.USE_STAGE == 'true' }} | |
run: | | |
cp $HOME/.m2/settings.xml /tmp/settings.xml | |
mv -vf .github/configs/settings.xml $HOME/.m2/settings.xml | |
- name: Run common test | |
run: | | |
mvn test -pl hugegraph-pd/hg-pd-test -am -P pd-common-test | |
- name: Upload coverage to Codecov | |
uses: codecov/[email protected] | |
with: | |
file: ${{ env.REPORT_DIR }}/*.xml | |
store: | |
# TODO: avoid duplicated env setup | |
runs-on: ubuntu-latest | |
env: | |
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 | |
steps: | |
- name: Install JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'zulu' | |
- name: Cache Maven packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 5 | |
- name: use staged maven repo settings | |
if: ${{ env.USE_STAGE == 'true' }} | |
run: | | |
cp $HOME/.m2/settings.xml /tmp/settings.xml | |
mv -vf .github/configs/settings.xml $HOME/.m2/settings.xml | |
- name: Run common test | |
run: | | |
mvn test -pl hugegraph-store/hg-store-test -am -P store-common-test | |
- name: Upload coverage to Codecov | |
uses: codecov/[email protected] | |
with: | |
file: ${{ env.REPORT_DIR }}/*.xml |