imbajin commented on code in PR #268:
URL:
https://github.com/apache/incubator-hugegraph-toolchain/pull/268#discussion_r861503393
##########
.github/workflows/loader-ci.yml:
##########
@@ -0,0 +1,86 @@
+name: hugegraph-loader-ci
+
+on:
+ push:
+ branches:
+ - master
+ - /^release-.*$/
+ - /^test-.*$/
+ paths:
+ - hugegraph-loader/**
+ - pom.xml
+ pull_request:
+ branches:
+ - master
+ - /^release-.*$/
+ - /^test-.*$/
+ paths:
+ - hugegraph-loader/**
+ - pom.xml
+
+jobs:
+ build:
+ runs-on: ubuntu-20.04
+ env:
+ TRAVIS_DIR: hugegraph-loader/assembly/travis
+ STATIC_DIR: hugegraph-loader/assembly/static
+ COMMIT_ID: 1d031c5905cbef008dd5fb468576b0e6a9445181
+ DB_USER: root
+ DB_PASS: root
+ DB_DATABASE: load_test
+ steps:
+ - name: Install JDK 8
+ uses: actions/setup-java@v2
+ with:
+ java-version: '8'
+ distribution: 'zulu'
+
+ - name: Cache Maven packages
+ uses: actions/cache@v2
+ with:
+ path: ~/.m2
+ key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
+ restore-keys: ${{ runner.os }}-m2
+
+ - name: Checkout
+ uses: actions/checkout@v2
+ with:
+ fetch-depth: 2
+
+ - name: Compile
+ run: |
+ mvn install:install-file -Dfile=$STATIC_DIR/lib/ojdbc8-12.2.0.1.jar
-DgroupId=com.oracle -DartifactId=ojdbc8 -Dversion=12.2.0.1 -Dpackaging=jar
+ cd hugegraph-loader && ls *
+ mvn -e compile -Dmaven.javadoc.skip=true | grep -v
"Downloading\|Downloaded"
+
+# - name: Init Mysql Env
+# uses: mirromutth/[email protected]
+# with:
+# host port: 3306 # Optional, default value is 3306. The port of host
+# container port: 3306 # Optional, default value is 3306. The port of
container
+# character set server: 'utf8mb4' # Optional, default value is
'utf8mb4'. The '--character-set-server' option for mysqld
+# collation server: 'utf8mb4_general_ci' # Optional, default value is
'utf8mb4_general_ci'. The '--collation-server' option for mysqld
+# mysql version: '5.7' # Optional, default value is "latest". The
version of the MySQL
+# mysql database: ${{ env.DB_DATABASE }} # Optional, default value is
"test". The specified database which will be create
+# mysql root password: ${{ env.DB_PASS }} # Required if "mysql user"
is empty, default is empty. The root superuser password
+# #mysql user: 'root' # Required if "mysql root password" is empty,
default is empty. The superuser for the specified database. Can use secrets, too
+# #mysql password: ${{ secrets.DatabasePassword }} # Required if
"mysql user" exists. The password for the "mysql user"
Review Comment:
maybe it's useful in future, but delete it anyway..
##########
.github/workflows/loader-ci.yml:
##########
@@ -0,0 +1,86 @@
+name: hugegraph-loader-ci
+
+on:
+ push:
+ branches:
+ - master
+ - /^release-.*$/
+ - /^test-.*$/
+ paths:
+ - hugegraph-loader/**
+ - pom.xml
+ pull_request:
+ branches:
+ - master
+ - /^release-.*$/
+ - /^test-.*$/
+ paths:
+ - hugegraph-loader/**
+ - pom.xml
+
+jobs:
+ build:
+ runs-on: ubuntu-20.04
+ env:
+ TRAVIS_DIR: hugegraph-loader/assembly/travis
+ STATIC_DIR: hugegraph-loader/assembly/static
+ COMMIT_ID: 1d031c5905cbef008dd5fb468576b0e6a9445181
+ DB_USER: root
+ DB_PASS: root
+ DB_DATABASE: load_test
+ steps:
+ - name: Install JDK 8
+ uses: actions/setup-java@v2
+ with:
+ java-version: '8'
+ distribution: 'zulu'
+
+ - name: Cache Maven packages
+ uses: actions/cache@v2
+ with:
+ path: ~/.m2
+ key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
+ restore-keys: ${{ runner.os }}-m2
+
+ - name: Checkout
+ uses: actions/checkout@v2
+ with:
+ fetch-depth: 2
+
+ - name: Compile
+ run: |
+ mvn install:install-file -Dfile=$STATIC_DIR/lib/ojdbc8-12.2.0.1.jar
-DgroupId=com.oracle -DartifactId=ojdbc8 -Dversion=12.2.0.1 -Dpackaging=jar
+ cd hugegraph-loader && ls *
+ mvn -e compile -Dmaven.javadoc.skip=true | grep -v
"Downloading\|Downloaded"
+
+# - name: Init Mysql Env
+# uses: mirromutth/[email protected]
+# with:
+# host port: 3306 # Optional, default value is 3306. The port of host
+# container port: 3306 # Optional, default value is 3306. The port of
container
+# character set server: 'utf8mb4' # Optional, default value is
'utf8mb4'. The '--character-set-server' option for mysqld
+# collation server: 'utf8mb4_general_ci' # Optional, default value is
'utf8mb4_general_ci'. The '--collation-server' option for mysqld
+# mysql version: '5.7' # Optional, default value is "latest". The
version of the MySQL
+# mysql database: ${{ env.DB_DATABASE }} # Optional, default value is
"test". The specified database which will be create
+# mysql root password: ${{ env.DB_PASS }} # Required if "mysql user"
is empty, default is empty. The root superuser password
+# #mysql user: 'root' # Required if "mysql root password" is empty,
default is empty. The superuser for the specified database. Can use secrets, too
+# #mysql password: ${{ secrets.DatabasePassword }} # Required if
"mysql user" exists. The password for the "mysql user"
Review Comment:
maybe it's useful in future, but delete it anyway..
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]