Skip to content

fix: checkstyle && add suppressions.xml (#500) #572

fix: checkstyle && add suppressions.xml (#500)

fix: checkstyle && add suppressions.xml (#500) #572

Workflow file for this run

name: "hugegraph-loader-ci"
on:
push:
branches:
- master
- /^release-.*$/
paths:
- hugegraph-loader/**
- hugegraph-dist/**
- .github/workflows/**
- pom.xml
pull_request:
paths:
- hugegraph-loader/**
- hugegraph-dist/**
- hugegraph-client/**
- .github/workflows/**
- pom.xml
jobs:
loader-ci:
runs-on: ubuntu-latest
env:
TRAVIS_DIR: hugegraph-loader/assembly/travis
STATIC_DIR: hugegraph-loader/assembly/static
COMMIT_ID: be6ee386b9939dc6bd6fcbdf2274b8acc3a0a314
DB_USER: root
DB_PASS: root
DB_DATABASE: load_test
steps:
- name: Install JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
- 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@v3
with:
fetch-depth: 2
- name: Compile
run: |
mvn install -pl hugegraph-client,hugegraph-loader -am -Dmaven.javadoc.skip=true -DskipTests -ntp
- name: Prepare env and service
run: |
$TRAVIS_DIR/install-hadoop.sh
$TRAVIS_DIR/install-mysql.sh ${{ env.DB_DATABASE }} ${{ env.DB_PASS }}
$TRAVIS_DIR/install-hugegraph-from-source.sh $COMMIT_ID
- name: Run test
run: |
cd hugegraph-loader && ls
mvn test -P unit -ntp
mvn test -P file
mvn test -P hdfs
mvn test -P jdbc
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
file: target/jacoco.xml