Repository navigation
Enable BGP next-hop-self #1738
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
| # SPDX-FileCopyrightText: SAP SE or an SAP affiliate company and IronCore contributors | |
| # SPDX-License-Identifier: Apache-2.0 | |
| name: Check Codegen | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - 'docs/**' | |
| - '**/*.md' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
| permissions: | |
| contents: read | |
| jobs: | |
| check-codegen: | |
| name: Detect Drift | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-go@v7 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: Run make generate | |
| run: make generate | |
| - name: Run make manifests | |
| run: make manifests | |
| - name: Run make docs | |
| run: make docs | |
| - name: Run make helm | |
| run: make helm | |
| - name: Run fmt | |
| run: make fmt | |
| - name: Compare the expected and actual generated/* directories | |
| run: | | |
| if [ "$(git diff | wc -l)" -gt "0" ]; then | |
| echo "Detected uncommitted changes after build. Consider running 'make generate && make manifests && make docs && make helm && make fmt'." | |
| echo "See status below:" | |
| git diff | |
| exit 1 | |
| fi |