bootstrap kick operator baseline at repo root #1
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: ci | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| verify: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4.2.2 | |
| - name: Setup Go | |
| uses: actions/setup-go@v5.5.0 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - name: Setup Python | |
| uses: actions/setup-python@v5.6.0 | |
| with: | |
| python-version: "3.x" | |
| - name: Install Python dependencies | |
| run: python -m pip install --upgrade pip pyyaml | |
| - name: Install local tools | |
| run: make tools | |
| - name: Format | |
| run: make fmt | |
| - name: Vet | |
| run: make vet | |
| - name: Lint | |
| run: make lint | |
| - name: Unit and envtest smoke tests | |
| run: make test | |
| - name: Race tests | |
| run: go test -race ./... | |
| - name: Generate | |
| run: make generate manifests | |
| - name: Generated diff check | |
| run: git diff --exit-code | |
| - name: Helm lint | |
| run: make helm-lint | |
| - name: Helm template | |
| run: make helm-template | |
| - name: Docs generation check | |
| run: make docs-gen-check | |
| - name: Vulnerability check | |
| run: | | |
| go install golang.org/x/vuln/cmd/govulncheck@v1.1.4 | |
| govulncheck ./... | |
| - name: Feature coverage | |
| run: make feature-coverage |