Skip to content

Commit

Permalink
chore(java): add a workflow to build using different jdk versions
Browse files Browse the repository at this point in the history
  • Loading branch information
aallam committed Feb 23, 2023
1 parent f795e72 commit de6451e
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions clients/algoliasearch-client-java-2/.github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: build

on: [push, pull_request]

jobs:
jvm:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
java: [ 8, 11, 17 ]
name: Java ${{ matrix.Java }} Build

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1

- name: Configure JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: ${{ matrix.java }}

- name: Build
run: |
./gradlew build --stacktrace

0 comments on commit de6451e

Please sign in to comment.