Simplify serialization for users [HZ-5243][HZ-5245] #189
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: CI | |
| on: | |
| push: | |
| branches: main | |
| pull_request: | |
| branches: main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| actions: write | |
| checks: write | |
| pull-requests: write | |
| strategy: | |
| matrix: | |
| java: [ '17', '21', '25' ] | |
| name: Build with Java ${{ matrix.java }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Set up JDK ${{ matrix.java }} | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: ${{ matrix.java }} | |
| distribution: 'temurin' | |
| cache: 'gradle' | |
| - name: Build with Gradle | |
| run: ./gradlew build | |
| - name: Summarize results | |
| if: matrix.java == '17' | |
| run: | | |
| python config/transformJacocoResult.py | |
| cat build/reports/jacoco/test/output_table.html >> $GITHUB_STEP_SUMMARY | |
| - name: Comment | |
| if: ${{ github.event_name == 'pull_request' && matrix.java == '17' }} | |
| env: | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| GH_TOKEN: ${{ github.token }} | |
| run: | | |
| content=$(cat build/reports/jacoco/test/output_table.html) | |
| gh pr comment $PR_NUMBER --body "$content" | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-results-java-${{ matrix.java }} | |
| path: | | |
| build/reports/tests/ | |
| build/test-results/ | |
| - name: Upload build artifacts | |
| if: success() && matrix.java == '17' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: build-artifacts | |
| path: build/libs/ |