feat(spark): support spark-sink connector for loader #626
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-hubble-ci" | |
on: | |
push: | |
branches: | |
- master | |
- /^release-.*$/ | |
paths: | |
- hugegraph-hubble/** | |
- hugegraph-dist/** | |
- hugegraph-loader/** | |
- .github/workflows/** | |
- pom.xml | |
pull_request: | |
paths: | |
- hugegraph-hubble/** | |
- hugegraph-dist/** | |
- hugegraph-loader/** | |
- hugegraph-client/** | |
- .github/workflows/** | |
- pom.xml | |
env: | |
TRAVIS_DIR: hugegraph-hubble/hubble-dist/assembly/travis | |
# TODO: need update it later (eed6103359fe40d2f1476fb8c56d9388c3111a99) | |
COMMIT_ID: be6ee386b9939dc6bd6fcbdf2274b8acc3a0a314 | |
jobs: | |
hubble-ci: | |
runs-on: ubuntu-latest | |
env: | |
STATIC_DIR: hugegraph-hubble/hubble-dist/assembly/static | |
steps: | |
- name: Install JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
- name: Use Node.js 16 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
# we also should cache python & yarn & downloads to avoid useless work | |
- name: Cache Maven packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Get Yarn path | |
id: yarn-cache-dir-path | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- name: Cache Yarn packages | |
uses: actions/cache@v3 | |
# use id to check `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | |
id: yarn-cache | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Cache Python packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- name: Compile | |
run: | | |
mvn install -pl hugegraph-client,hugegraph-loader -am -Dmaven.javadoc.skip=true -DskipTests -ntp | |
cd hugegraph-hubble && ls * | |
mvn -e compile -Dmaven.javadoc.skip=true -ntp | |
- name: Prepare env and service | |
run: | | |
sudo pip install -r ${TRAVIS_DIR}/requirements.txt | |
cd hugegraph-hubble | |
mvn package -Dmaven.test.skip=true | |
cd apache-hugegraph-hubble-incubating* | |
cd bin | |
./start-hubble.sh -d | |
./stop-hubble.sh | |
cd ../../../ | |
pwd | |
$TRAVIS_DIR/install-hugegraph.sh $COMMIT_ID | |
- name: Unit test | |
run: mvn test -P unit-test -pl hugegraph-hubble/hubble-be -ntp | |
- name: API test | |
env: | |
CI: false | |
run: | | |
cd hugegraph-hubble && ls | |
hubble-dist/assembly/travis/run-api-test.sh | |
- name: Upload coverage to Codecov | |
uses: codecov/[email protected] | |
with: | |
file: target/site/jacoco/*.xml |