-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (36 loc) · 1.05 KB
/
Copy pathlindb_client.yml
File metadata and controls
36 lines (36 loc) · 1.05 KB
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
name: LinDB Java Client CI
on:
pull_request:
push:
branches:
- main
jobs:
test-with-coverage:
name: Build & Uint Test
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'zulu' # See 'Supported distributions' for available options
java-version: '11'
cache: 'maven'
- name: Cache mvn dependencies
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build with Maven
run: mvn package -Dmaven.exec.skip=true
- name: Upload code coverage
uses: codecov/codecov-action@v3 # https://github.com/codecov/codecov-action
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./target/site/jacoco/jacoco.xml
flags: unittests