KRPC-585: Define BSR in Gradle plugin #1514
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: Verify Platforms Table | |
| on: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| verify-platforms-table: | |
| name: Run Verification | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Sources | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Dump Platforms Table | |
| run: ./gradlew dumpPlatformTable --no-configuration-cache --info --stacktrace | |
| - name: Verify Platforms Table | |
| run: | | |
| set -euo pipefail | |
| if [[ -n "$(git status --porcelain | grep docs/pages/kotlinx-rpc/topics/platforms.topic)" ]]; then | |
| echo "Platform table is not up-to-date. Please run `./gradlew dumpPlatformTable --no-configuration-cache` and commit changes" | |
| git status --porcelain | |
| git diff --minimal | cat | |
| exit 1 | |
| fi |