Update kotlin monorepo to v2.3.10 #1327
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 Project | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| - main | |
| - trunk | |
| - develop | |
| - maine | |
| - mane | |
| schedule: | |
| - cron: '0 3 * * 1,4' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Write Gradle build properties to `~/.gradle/gradle.properties` | |
| run: | | |
| mkdir -p ~/.gradle | |
| printf "org.gradle.jvmargs=-Xmx3G -XX:+UseParallelGC\n" >> ~/.gradle/gradle.properties | |
| printf "org.gradle.vfs.watch=false\n" >> ~/.gradle/gradle.properties | |
| shell: bash | |
| - uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: 24 | |
| - uses: gradle/actions/wrapper-validation@v5 | |
| - uses: gradle/actions/setup-gradle@v5 | |
| with: | |
| dependency-graph: generate-and-submit | |
| - run: ./gradlew projectCodestyle | |
| - run: ./gradlew assemble | |
| - run: ./gradlew check | |
| - run: ./gradlew publishToMavenLocal | |
| - run: git diff --exit-code | |
| - uses: actions/upload-artifact@v6 | |
| if: ${{ always() }} | |
| with: | |
| name: test-results | |
| path: "${{ github.workspace }}/**/build/reports/tests" | |
| - run: ./gradlew publishToMavenLocal | |
| env: | |
| ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }} | |
| ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }} | |
| ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY_CONTENTS }} | |
| - run: git diff --exit-code | |
| - run: | | |
| find . -regex ".*issuechecker/cli/build/libs/cli-[0-9SNAPSHOT\.-]*-r8\.jar" -print | xargs -n 1 -I % cp % minified.jar | |
| java -jar minified.jar --help | |
| rm minified.jar | |
| name: "Smoke test minified jar" | |
| if: github.event_name == 'pull_request' | |
| - uses: actions/cache@v5 | |
| name: Upload base | |
| if: github.event_name != 'pull_request' | |
| with: | |
| path: diffuse-source-file | |
| key: diffuse-${{ github.sha }} | |
| - run: find . -regex ".*issuechecker/build/libs/issuechecker-jvm-[0-9SNAPSHOT\.-]*\.jar" -print | xargs -n 1 -I % cp % diffuse-source-file | |
| if: github.event_name != 'pull_request' | |
| shell: bash | |
| - uses: actions/cache@v5 | |
| name: Download base | |
| if: github.event_name == 'pull_request' | |
| with: | |
| path: diffuse-source-file | |
| key: diffuse-${{ github.event.pull_request.base.sha }} | |
| - run: find . -regex ".*issuechecker/build/libs/issuechecker-jvm-[0-9SNAPSHOT\.-]*\.jar" -print | xargs -n 1 -I % cp % pull-request-artifact.jar | |
| if: github.event_name == 'pull_request' | |
| shell: bash | |
| - id: diffuse | |
| if: github.event_name == 'pull_request' | |
| uses: usefulness/diffuse-action@v0.11.0 | |
| with: | |
| old-file-path: diffuse-source-file | |
| new-file-path: pull-request-artifact.jar | |
| - uses: peter-evans/find-comment@v4 | |
| if: github.event_name == 'pull_request' | |
| id: find_comment | |
| with: | |
| issue-number: ${{ github.event.pull_request.number }} | |
| body-includes: Diffuse output | |
| - uses: peter-evans/create-or-update-comment@v5 | |
| if: ${{ steps.diffuse.outputs.diff-raw != null || steps.find_comment.outputs.comment-id != null }} | |
| with: | |
| body: | | |
| ### Jar size: | |
| Jar size change: ${{ steps.diffuse.outputs.size-diff-comment_style_1 }} | |
| ### Diffuse output: | |
| ${{ steps.diffuse.outputs.diff-gh-comment }} | |
| edit-mode: replace | |
| comment-id: ${{ steps.find_comment.outputs.comment-id }} | |
| issue-number: ${{ github.event.pull_request.number }} | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: actions/upload-artifact@v6 | |
| if: github.event_name == 'pull_request' | |
| with: | |
| name: diffuse-output | |
| path: ${{ steps.diffuse.outputs.diff-file }} |