github.com/ydb-platform/ydb-go-sdk/v3@v3.89.2/.github/workflows/check-codegen.yml (about)

     1  name: check-codegen
     2  on:
     3    push:
     4      branches:
     5        - master
     6        - release-*
     7    pull_request:
     8    workflow_dispatch:
     9  jobs:
    10    test:
    11      concurrency:
    12        group: codegen-${{ github.ref }}-${{ matrix.os }}-${{ matrix.go-version }}
    13        cancel-in-progress: true
    14      strategy:
    15        matrix:
    16          os: [ ubuntu-latest ]
    17          go-version: [1.23.x]
    18      runs-on: ${{ matrix.os }}
    19      steps:
    20      - name: Checkout
    21        uses: actions/checkout@v4
    22  
    23      - name: Setup Go
    24        uses: actions/setup-go@v5
    25        with:
    26          go-version: ${{ matrix.go-version }}
    27  
    28      - name: Go Env
    29        run: |
    30          go env
    31  
    32      - name: Build
    33        run: |
    34          go install ./internal/cmd/gtrace
    35          go install ./internal/cmd/gstack
    36          go install go.uber.org/mock/mockgen@v0.4.0
    37  
    38      - name: Clean and re-generate *_gtrace.go files
    39        run: |
    40          rm -f ./trace/*_gtrace.go
    41          go generate ./trace
    42          go generate ./...
    43  
    44      - name: Re-generate stack.FunctionID calls
    45        run: |
    46          gstack .
    47  
    48      - name: Check repository diff
    49        run: bash ./.github/scripts/check-work-copy-equals-to-committed.sh "code-generation not equal with committed"