From 071d9513aba30733da64339f5bcc5f92d4809181 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=84=A0=EC=9A=B0?= Date: Fri, 10 Jan 2025 17:51:16 +0900 Subject: [PATCH] Add CI for java testing --- .github/workflows/java.yml | 38 ++++++++++++++++++++++++++++++++++++++ bindings/java/Makefile | 4 ++-- 2 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/java.yml diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml new file mode 100644 index 000000000..7c3c6b7ba --- /dev/null +++ b/.github/workflows/java.yml @@ -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 diff --git a/bindings/java/Makefile b/bindings/java/Makefile index a8e979dbc..5d091145d 100644 --- a/bindings/java/Makefile +++ b/bindings/java/Makefile @@ -1,6 +1,6 @@ -.PHONY: lib +.PHONY: test build_test -run_test: build_test +test: build_test ./gradlew test build_test: