github.com/ydb-platform/ydb-go-sdk/v3@v3.57.0/.github/workflows/breaking.yml (about)

     1  # This script is provided by github.com/bool64/dev.
     2  name: breaking
     3  on:
     4    pull_request:
     5  env:
     6    GO111MODULE: "on"
     7  
     8  jobs:
     9    broken-changes:
    10      concurrency:
    11        group: broken-changes-${{ github.ref }}
    12        cancel-in-progress: true
    13      runs-on: ubuntu-latest
    14      steps:
    15        - name: Install Go
    16          uses: actions/setup-go@v3
    17          with:
    18            go-version: "1.21"
    19        - name: Checkout code
    20          uses: actions/checkout@v3
    21        - name: Install gorelease
    22          run: test -e ~/go/bin/gorelease || go install golang.org/x/exp/cmd/gorelease@latest
    23        - name: Check broken API changes
    24          run: gorelease -base=$GITHUB_BASE_REF 2>&1 > changes.txt | true
    25        - name: Comment Report
    26          if: always()
    27          uses: marocchino/sticky-pull-request-comment@v2
    28          with:
    29            path: changes.txt
    30            GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    31            header: gorelease