cisco-nxos-provider: enable NVE #255
Workflow file for this run
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
| ################################################################################ | |
| # This file is AUTOGENERATED with <https://github.com/sapcc/go-makefile-maker> # | |
| # Edit Makefile.maker.yaml instead. # | |
| ################################################################################ | |
| # SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company | |
| # SPDX-License-Identifier: Apache-2.0 | |
| name: Checks | |
| "on": | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - '*' | |
| workflow_dispatch: {} | |
| permissions: | |
| checks: write | |
| contents: read | |
| jobs: | |
| checks: | |
| name: Checks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| check-latest: true | |
| go-version: 1.24.5 | |
| - name: Cache golangci-lint analysis | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/golangci-lint | |
| key: ${{ runner.os }}-golangci-lint-${{ hashFiles('go.sum', '.golangci.yaml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-golangci-lint- | |
| - name: Run prepare make target | |
| run: make generate | |
| - name: Run golangci-lint | |
| run: | | |
| # FIXME: Exclude cisco nx-os provider from golangci-lint as it includes | |
| # a lot of generated code that will exceed the runners's constraints. | |
| curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.3.1 | |
| go list -f '{{.Dir}}' ./... | grep -v nxos/ | xargs $(go env GOPATH)/bin/golangci-lint run | |
| - name: Run shellcheck | |
| uses: ludeeus/action-shellcheck@2.0.0 | |
| - name: Dependency Licenses Review | |
| run: make check-dependency-licenses | |
| - name: Check for spelling errors | |
| uses: reviewdog/action-misspell@v1 | |
| with: | |
| exclude: ./vendor/* | |
| fail_on_error: true | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| ignore: importas | |
| reporter: github-check | |
| - name: Check if source code files have license header | |
| run: make check-addlicense | |
| - name: Install govulncheck | |
| run: go install golang.org/x/vuln/cmd/govulncheck@latest | |
| - name: Run govulncheck | |
| run: govulncheck -format text ./... |