Skip to content

chore(deps): update linters #361

chore(deps): update linters

chore(deps): update linters #361

Workflow file for this run

---
name: API Diff
on:
pull_request:
types:
- opened
- synchronize
- reopened
workflow_dispatch:
inputs:
baseline_version:
description: >-
Override the baseline version to compare against.
Defaults to <api.diff.baseline.version> in pom.xml.
required: false
default: ""
permissions:
contents: read
jobs:
api-diff:
if: ${{ !startsWith(github.head_ref, 'release-please--branches--') }}
runs-on: ubuntu-24.04
env:
# Empty unless overridden via workflow_dispatch; the api-diff task then
# falls back to <api.diff.baseline.version> in pom.xml.
API_DIFF_BASELINE_VERSION: ${{ inputs.baseline_version }}
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
with:
persist-credentials: false
- uses: jdx/mise-action@e6a8b3978addb5a52f2b4cd9d91eafa7f0ab959d # v4.2.0
with:
version: v2026.6.12
sha256: ff0cf4917acc96b7ffdd0382261d17f405572e9240f95fafb980e44aaf60c514
- name: Cache local Maven repository
uses: actions/cache@2c8a9bd7457de244a408f35966fab2fb45fda9c8 # v6.0.0
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
- name: Run japicmp API diff
run: mise run api-diff
- name: Check docs/apidiffs is up to date
run: |
if ! git diff --exit-code -- docs/apidiffs; then
echo "::error::Published API surface changed but docs/apidiffs is stale."
echo "Run 'mise run api-diff' locally and commit the updated docs/apidiffs."
exit 1
fi