From aa7f60e06c9cdd1dd45adad2fae4ce15a96cbd6a Mon Sep 17 00:00:00 2001 From: VGalaxies Date: Wed, 7 Aug 2024 20:12:37 +0800 Subject: [PATCH] include the stage repository --- .github/workflows/commons-ci.yml | 9 +++++++++ .github/workflows/pd-store-ci.yml | 4 ++-- .github/workflows/server-ci.yml | 2 +- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/commons-ci.yml b/.github/workflows/commons-ci.yml index 9e0b453721..06d4c9d419 100644 --- a/.github/workflows/commons-ci.yml +++ b/.github/workflows/commons-ci.yml @@ -12,6 +12,9 @@ on: jobs: build: runs-on: ubuntu-latest + env: + USE_STAGE: 'true' # Whether to include the stage repository. + strategy: fail-fast: false matrix: @@ -36,6 +39,12 @@ jobs: with: fetch-depth: 2 + - name: Use staged maven repo settings + if: ${{ env.USE_STAGE == 'true' }} + run: | + 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 diff --git a/.github/workflows/pd-store-ci.yml b/.github/workflows/pd-store-ci.yml index c0f4825251..621431c8ee 100644 --- a/.github/workflows/pd-store-ci.yml +++ b/.github/workflows/pd-store-ci.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest env: # TODO: avoid duplicated env setup in pd & store - 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 @@ -79,7 +79,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 diff --git a/.github/workflows/server-ci.yml b/.github/workflows/server-ci.yml index bbf8a5eab6..86b55d0236 100644 --- a/.github/workflows/server-ci.yml +++ b/.github/workflows/server-ci.yml @@ -13,7 +13,7 @@ jobs: # TODO: we need test & replace it to ubuntu-24.04 or ubuntu-latest runs-on: ubuntu-20.04 env: - USE_STAGE: 'false' # Whether to include the stage repository. + USE_STAGE: 'true' # Whether to include the stage repository. TRAVIS_DIR: hugegraph-server/hugegraph-dist/src/assembly/travis REPORT_DIR: target/site/jacoco BACKEND: ${{ matrix.BACKEND }}