Skip to content

Commit 60e1b04

Browse files
seonWKimalpaylan
authored andcommitted
Add CI for java testing
1 parent be98f04 commit 60e1b04

File tree

2 files changed

+40
-2
lines changed

2 files changed

+40
-2
lines changed

.github/workflows/java.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Java Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- v*
9+
pull_request:
10+
branches:
11+
- main
12+
13+
env:
14+
working-directory: bindings/java
15+
16+
jobs:
17+
test:
18+
runs-on: ubuntu-latest
19+
20+
defaults:
21+
run:
22+
working-directory: ${{ env.working-directory }}
23+
24+
steps:
25+
- name: Checkout code
26+
uses: actions/checkout@v4
27+
28+
- name: Install Rust(stable)
29+
uses: dtolnay/rust-toolchain@stable
30+
31+
- name: Set up JDK
32+
uses: actions/setup-java@v3
33+
with:
34+
distribution: 'temurin'
35+
java-version: '11'
36+
37+
- name: Run Java tests
38+
run: make test

bindings/java/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
.PHONY: lib
1+
.PHONY: test build_test
22

3-
run_test: build_test
3+
test: build_test
44
./gradlew test
55

66
build_test:

0 commit comments

Comments
 (0)