blob: 204a9c1dd5996f74f89e6b2a4682c0f38b4c795a [file] [log] [blame]
name: hugegraph-tools-ci
on:
push:
branches:
- master
- /^release-.*$/
- /^test-.*$/
paths:
- hugegraph-tools/**
- hugegraph-dist/**
- .github/workflows/**
- pom.xml
pull_request:
branches:
- master
- /^release-.*$/
- /^test-.*$/
paths:
- hugegraph-tools/**
- hugegraph-dist/**
- .github/workflows/**
- pom.xml
jobs:
build:
runs-on: ubuntu-20.04
env:
TRAVIS_DIR: hugegraph-tools/assembly/travis
COMMIT_ID: 1d031c5905cbef008dd5fb468576b0e6a9445181
steps:
- name: Install JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
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@v3
with:
fetch-depth: 2
- name: Compile
run: |
cd hugegraph-tools && ls *
mvn -e compile -Dmaven.javadoc.skip=true
- name: Prepare env and service
run: |
$TRAVIS_DIR/install-hugegraph-from-source.sh $COMMIT_ID
- name: Run test
run: |
cd hugegraph-tools && ls *
mvn test -Dtest=FuncTestSuite
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3.0.0
with:
file: target/jacoco.xml