Add test comment back #26
This file contains 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: unit | |
env: | |
K8S_VERSION: 1.19.2 | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
workflow_dispatch: | |
merge_group: | |
jobs: | |
unit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version-file: "go.mod" | |
- name: Envtest setup | |
run: | | |
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest | |
setup-envtest use ${K8S_VERSION} | |
- name: Run unit tests | |
run: KUBEBUILDER_ASSETS=$(setup-envtest use -i -p path ${K8S_VERSION}) make unit |