java, fix: generate builders even when types have no fields #153
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: java | |
on: | |
pull_request: | |
paths: | |
- "generators/java/**" | |
branches: | |
- main | |
workflow_call: | |
jobs: | |
compile: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v2 | |
with: | |
distribution: "adopt" | |
java-version: "11" | |
- name: Build with Gradle | |
working-directory: ./generators/java | |
run: ./gradlew compileJava | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v2 | |
with: | |
distribution: "adopt" | |
java-version: "11" | |
- name: Build with Gradle | |
working-directory: ./generators/java | |
env: | |
TERM: dumb | |
run: ./gradlew test | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v2 | |
with: | |
distribution: "adopt" | |
java-version: "11" | |
- env: | |
TERM: dumb | |
name: Build with Gradle | |
working-directory: ./generators/java | |
run: ./gradlew check -x test |