forked from vesoft-inc/nebula-flink-connector
-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (40 loc) · 1.15 KB
/
pull_request.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: pull_request
on:
push:
branches: [ master ]
pull_request:
branches:
- master
- 'v[0-9]+.*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Cache the Maven packages to speed up build
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-
- name: Install nebula-graph
run: |
mkdir tmp
pushd tmp
git clone https://github.com/vesoft-inc/nebula-docker-compose.git
pushd nebula-docker-compose/
cp ../../connector/src/test/resources/docker-compose.yaml .
docker-compose up -d
sleep 10
popd
popd
- name: Build with Maven
run: |
mvn -B package
bash <(curl -s https://codecov.io/bash)