-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (41 loc) · 1.01 KB
/
java-sdk-unit-tests.yaml
File metadata and controls
41 lines (41 loc) · 1.01 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
37
38
39
40
41
name: Java SDK Unit Test
on:
workflow_dispatch: {}
pull_request:
branches:
- main
push:
branches:
- main
jobs:
mvn_test_linux:
name: mvn test (linux)
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Java and Maven
uses: actions/setup-java@v3
with:
distribution: "adopt-hotspot"
java-version: "8"
cache: "maven"
- name: Setup Rust toolchain x86_64-unknown-linux-gnu
uses: actions-rs/toolchain@v1
with:
target: x86_64-unknown-linux-gnu
- name: Compile Native Library
run: |
make
- name: Cache Maven
uses: actions/cache@v3
with:
path: |
~/.m2
~/repository
key: ${{ github.job }}-${{ hashFiles('**/pom.xml') }}
- name: mvn test
run: |
cd reddio-java && mvn -B clean test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3