fix(java): preserve and escape all-underscore discriminator values #2734
Workflow file for this run
This file contains hidden or 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 Generator | |
| on: | |
| pull_request: | |
| paths: | |
| - "generators/java/**" | |
| branches: | |
| - main | |
| workflow_call: | |
| env: | |
| DO_NOT_TRACK: "1" | |
| jobs: | |
| compile: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v6 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v5 | |
| 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@v6 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v5 | |
| 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@v6 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: "adopt" | |
| java-version: "11" | |
| - env: | |
| TERM: dumb | |
| name: Build with Gradle | |
| working-directory: ./generators/java | |
| run: ./gradlew check -x test |