Skip to content

Commit

Permalink
Add CI for java testing
Browse files Browse the repository at this point in the history
  • Loading branch information
seonWKim committed Jan 10, 2025
1 parent d31ccf2 commit 071d951
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 2 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/java.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Java Tests

on:
push:
branches:
- main
tags:
- v*
pull_request:
branches:
- main

env:
working-directory: bindings/java

jobs:
test:
runs-on: ubuntu-latest

defaults:
run:
working-directory: ${{ env.working-directory }}

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install Rust(stable)
uses: dtolnay/rust-toolchain@stable

- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'

- name: Run Java tests
run: make test
4 changes: 2 additions & 2 deletions bindings/java/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY: lib
.PHONY: test build_test

run_test: build_test
test: build_test
./gradlew test

build_test:
Expand Down

0 comments on commit 071d951

Please sign in to comment.