name: Kyuubi on: [push, pull_request] jobs: build: name: Build runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Setup JDK 1.8 uses: actions/setup-java@v1 with: java-version: '1.8' - uses: actions/cache@v1 with: path: ~/.m2/repository/com key: ${{ runner.os }}-maven-com-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven-com- - uses: actions/cache@v1 with: path: ~/.m2/repository/org key: ${{ runner.os }}-maven-org-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven-org- - uses: actions/cache@v1 with: path: ~/.m2/repository/net key: ${{ runner.os }}-maven-net-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven-net- - uses: actions/cache@v1 with: path: ~/.m2/repository/io key: ${{ runner.os }}-maven-io-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven-io- - name: Build with Maven run: | export MAVEN_OPTS="-Xmx2g -XX:ReservedCodeCacheSize=512m -Dorg.slf4j.simpleLogger.defaultLogLevel=WARN" mvn clean install -pl '!:kyuubi-server,!:kyuubi-thrift' -Dmaven.javadoc.skip=true -B -V - name: Codecov kyuubi-common uses: codecov/codecov-action@v1 with: file: ./kyuubi-common/target/codecov/jacoco.xml flags: kyuubi-common - name: Codecov kyuubi-ha uses: codecov/codecov-action@v1 with: file: ./kyuubi-ha/target/codecov/jacoco.xml flags: kyuubi-ha - name: Codecov kyuubi-spark-sql-engine uses: codecov/codecov-action@v1 with: file: ./externals/kyuubi-spark-sql-engine/target/codecov/jacoco.xml flags: kyuubi-spark-sql-engine - name: Codecov kyuubi-main uses: codecov/codecov-action@v1 with: file: ./kyuubi-main/target/codecov/jacoco.xml flags: kyuubi-main