Skip to content

Try this way

Try this way #26

Workflow file for this run

name: Go Unit Tests
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Setup EnvTest
run: go run sigs.k8s.io/controller-runtime/tools/setup-envtest@latest use --bin-dir /tmp/kubebuilder 1.28.x
- name: Test
env:
KUBEBUILDER_ASSETS: /tmp/kubebuilder
run: go test -v ./...