chore: clean up redundant syntax and unused code (#112) #162
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: Build & Test | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: [ master ] | |
| push: | |
| branches: [ master ] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} | |
| permissions: | |
| contents: read | |
| env: | |
| JAVA_VERSION: 21 | |
| JAVA_DISTRIBUTION: temurin | |
| GRADLE_OPTS: "-Dorg.gradle.daemon=false" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| permissions: | |
| checks: write | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up JDK ${{ env.JAVA_VERSION }} | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: ${{ env.JAVA_VERSION }} | |
| distribution: ${{ env.JAVA_DISTRIBUTION }} | |
| - name: Set up Node.js 22 | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v6 | |
| with: | |
| validate-wrappers: true | |
| add-job-summary: always | |
| cache-read-only: ${{ github.ref != 'refs/heads/master' }} | |
| - name: Check binary compatibility | |
| run: ./gradlew apiCheck --parallel | |
| - name: Run tests | |
| run: ./gradlew jvmTest linuxX64Test wasmJsNodeTest --continue --parallel | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: test-results | |
| path: '**/build/test-results/**/TEST-*.xml' | |
| - name: Publish Test Report | |
| uses: mikepenz/action-junit-report@v6 | |
| if: always() | |
| with: | |
| report_paths: '**/build/test-results/**/TEST-*.xml' |