Skip to content

updating to operator-sdk version 1.31.0 #284

updating to operator-sdk version 1.31.0

updating to operator-sdk version 1.31.0 #284

Workflow file for this run

name: CI
on:
pull_request:
branches: [ main ]
jobs:
sanity:
name: sanity
runs-on: ubuntu-22.04
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.19
id: go
- uses: actions/checkout@v3
with:
fetch-depth: 0
- id: go-cache-paths
run: |
echo "go-build=$(go env GOCACHE)" >> $GITHUB_OUTPUT
echo "go-mod=$(go env GOMODCACHE)" >> $GITHUB_OUTPUT
- name: Go Build Cache
uses: actions/cache@v3
with:
path: ${{ steps.go-cache-paths.outputs.go-build }}
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
- name: Go Mod Cache
uses: actions/cache@v3
with:
path: ${{ steps.go-cache-paths.outputs.go-mod }}
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
- run: sudo rm -f /usr/local/bin/kustomize
- name: Generate
run: make generate && git diff --exit-code
- name: Manifests
run: make manifests && git diff --exit-code
- name: Tidy
run: make tidy
- name: Vet
run: make vet
- name: Format
run: make fmt
- name: Run golangci linting checks
run: make lint
- name: Test
run: make test