Skip to content

Commit

Permalink
Setup Java build matrix for java client
Browse files Browse the repository at this point in the history
  • Loading branch information
holgerstolzenberg committed Nov 3, 2024
1 parent 2a77001 commit 460e00d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/main-branch-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,19 @@ on:
push:
branches: ["main"]

# TODO fully implement workflow
jobs:
java-build:
runs-on: ubuntu-22.04

strategy:
matrix:
java-version: [21]
java-version: [17, 21]
java-http-lib: [restclient]

# TODO fully implement workflow
steps:
- uses: actions/checkout@v4

- name: Generate Java (Spring RestClient) client
uses: openapi-generators/openapitools-generator-action@v1
with:
Expand All @@ -25,6 +26,13 @@ jobs:
# TODO param for authzed version
command-args: -p "artifactVersion=0.0.0" -p "library=restclient"

- name: Set up JDK ${{ matrix.version }}
uses: actions/setup-java@v4
with:
java-version: "${{ matrix.version }}"
distribution: 'temurin'
cache: maven

- name: Switch into generated java client working directory
run: |
cd java-client

0 comments on commit 460e00d

Please sign in to comment.