kotlin-sdk/.github/workflows/build.yml
dependabot[bot] afc32807cc
Bump mikepenz/action-junit-report from 5 to 6 (#363)
Bumps
[mikepenz/action-junit-report](https://github.com/mikepenz/action-junit-report)
from 5 to 6.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/mikepenz/action-junit-report/releases">mikepenz/action-junit-report's
releases</a>.</em></p>
<blockquote>
<h2>v6</h2>
<h2>🚀 Features</h2>
<ul>
<li>Add report_url output for test report URLs
<ul>
<li>PR: <a
href="https://redirect.github.com/mikepenz/action-junit-report/issues/1456">#1456</a></li>
</ul>
</li>
</ul>
<h2>📦 Dependencies</h2>
<ul>
<li>Bump github/codeql-action from 3 to 4
<ul>
<li>PR: <a
href="https://redirect.github.com/mikepenz/action-junit-report/issues/1443">#1443</a></li>
</ul>
</li>
<li>Bump actions/setup-node from 5 to 6
<ul>
<li>PR: <a
href="https://redirect.github.com/mikepenz/action-junit-report/issues/1450">#1450</a></li>
</ul>
</li>
<li>Upgrade dev dependencies
<ul>
<li>PR: <a
href="https://redirect.github.com/mikepenz/action-junit-report/issues/1458">#1458</a></li>
</ul>
</li>
</ul>
<h2>Contributors:</h2>
<ul>
<li><a
href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot],
<a href="https://github.com/Copilot"><code>@​Copilot</code></a>, <a
href="https://github.com/mikepenz"><code>@​mikepenz</code></a></li>
</ul>
<h2>v5.6.2</h2>
<h2>🚀 Features</h2>
<ul>
<li>Add pr_id parameter to support PR comments from workflow_run
contexts
<ul>
<li>PR: <a
href="https://redirect.github.com/mikepenz/action-junit-report/issues/1379">#1379</a></li>
</ul>
</li>
</ul>
<h2>📦 Dependencies</h2>
<ul>
<li>Upgrade dev dependencies
<ul>
<li>PR: <a
href="https://redirect.github.com/mikepenz/action-junit-report/issues/1380">#1380</a></li>
</ul>
</li>
</ul>
<h2>Contributors:</h2>
<ul>
<li><a href="https://github.com/Copilot"><code>@​Copilot</code></a>, <a
href="https://github.com/mikepenz"><code>@​mikepenz</code></a></li>
</ul>
<h2>v5.6.1</h2>
<h2>🐛 Fixes</h2>
<ul>
<li>User server url from <code>github.context</code>
<ul>
<li>PR: <a
href="https://redirect.github.com/mikepenz/action-junit-report/issues/1366">#1366</a></li>
</ul>
</li>
</ul>
<h2>📦 Dependencies</h2>
<ul>
<li>Upgrade Dev Dependencies
<ul>
<li>PR: <a
href="https://redirect.github.com/mikepenz/action-junit-report/issues/1367">#1367</a></li>
</ul>
</li>
</ul>
<h2>Contributors:</h2>
<ul>
<li><a
href="https://github.com/mikepenz"><code>@​mikepenz</code></a></li>
</ul>
<h2>v5.6.0</h2>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="e08919a3b1"><code>e08919a</code></a>
Merge pull request <a
href="https://redirect.github.com/mikepenz/action-junit-report/issues/1458">#1458</a>
from mikepenz/feature/dependency_updates</li>
<li><a
href="be56403794"><code>be56403</code></a>
Update dependencies: bump <a
href="https://github.com/typescript-eslint"><code>@​typescript-eslint</code></a>
packages and webpack</li>
<li><a
href="f210c1272c"><code>f210c12</code></a>
Merge pull request <a
href="https://redirect.github.com/mikepenz/action-junit-report/issues/1456">#1456</a>
from mikepenz/copilot/add-test-report-url-output</li>
<li><a
href="43c51012b1"><code>43c5101</code></a>
Merge pull request <a
href="https://redirect.github.com/mikepenz/action-junit-report/issues/1450">#1450</a>
from mikepenz/dependabot/github_actions/actions/setu...</li>
<li><a
href="33b2908866"><code>33b2908</code></a>
recompile dist</li>
<li><a
href="2f431384e3"><code>2f43138</code></a>
Update README with report_url output documentation</li>
<li><a
href="ba3f83d1bc"><code>ba3f83d</code></a>
Add report_url output with test report URLs</li>
<li><a
href="4e74f6f623"><code>4e74f6f</code></a>
Initial plan</li>
<li><a
href="a2801ff9bb"><code>a2801ff</code></a>
Bump actions/setup-node from 5 to 6</li>
<li><a
href="71ca73c487"><code>71ca73c</code></a>
Merge pull request <a
href="https://redirect.github.com/mikepenz/action-junit-report/issues/1443">#1443</a>
from mikepenz/dependabot/github_actions/github/codeq...</li>
<li>Additional commits viewable in <a
href="https://github.com/mikepenz/action-junit-report/compare/v5...v6">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=mikepenz/action-junit-report&package-manager=github_actions&previous-version=5&new-version=6)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-03 12:51:33 +02:00

84 lines
2.6 KiB
YAML

name: Build
on:
workflow_dispatch:
pull_request:
branches: [ main ]
push:
branches: [ main ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
# Cancel only when the run is NOT on `main` branch
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
validate-pr:
runs-on: macos-latest-xlarge
name: Validate PR
timeout-minutes: 20
env:
JAVA_OPTS: "-Xmx8g -Dfile.encoding=UTF-8 -Djava.awt.headless=true -Dkotlin.daemon.jvm.options=-Xmx6g"
steps:
- uses: actions/checkout@v5
- name: Set up JDK 21
uses: actions/setup-java@v5
with:
java-version: '21'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
with:
add-job-summary: 'always'
cache-read-only: true
- name: Build with Gradle
run: |-
./gradlew --no-daemon \
--rerun-tasks \
clean \
ktlintCheck \
build \
koverLog koverHtmlReport \
publishToMavenLocal \
-Pversion=0.0.1-SNAPSHOT
- name: Build Kotlin-MCP-Client Sample
working-directory: ./samples/kotlin-mcp-client
run: ./gradlew --no-daemon clean build -Pmcp.kotlin.overrideVersion=0.0.1-SNAPSHOT
# - name: Build Kotlin-MCP-Server Sample
# working-directory: ./samples/kotlin-mcp-server
# run: ./gradlew --no-daemon clean build -Pmcp.kotlin.overrideVersion=0.0.1-SNAPSHOT
- name: Build Weather-Stdio-Server Sample
working-directory: ./samples/weather-stdio-server
run: ./gradlew --no-daemon clean build -Pmcp.kotlin.overrideVersion=0.0.1-SNAPSHOT
- name: Upload Reports
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v5
with:
name: reports
path: |
**/build/reports/
- name: Publish Test Report
uses: mikepenz/action-junit-report@v6
if: ${{ !cancelled() }} # always run even if the previous step fails
with:
report_paths: '**/test-results/**/TEST-*.xml'
detailed_summary: true
flaky_summary: true
include_empty_in_summary: false
include_time_in_summary: true
annotate_only: true
- name: Disable Auto-Merge on Fail
if: failure() && github.event_name == 'pull_request'
run: gh pr merge --disable-auto "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}