diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml new file mode 100644 index 00000000..7c3c6b7b --- /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 a8e979db..5d091145 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: