feat: discover relationships by property name #36
Workflow file for this run
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: PR Checks | |
on: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: go.mod | |
- name: Setup Kind | |
uses: engineerd/[email protected] | |
with: | |
version: "v0.11.1" | |
- name: Install Envtest | |
run: | | |
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest | |
setup-envtest use | |
echo "KUBEBUILDER_ASSETS=$(setup-envtest use -p path)" >> $GITHUB_ENV | |
- name: Create a link to envtest in operator/bin | |
run: mkdir -p ./operator/bin && ln -s $(which setup-envtest) ./operator/bin/setup-envtest | |
- name: Install goyacc | |
run: go install golang.org/x/tools/cmd/goyacc@latest | |
- name: Create the operator manifests | |
run: make operator-manifests | |
- name: Run tests | |
run: make test | |
- name: Apply operator test CRDs | |
run: kubectl apply -f ./operator/test/e2e/samples/crd-exposeddeployments.yaml | |
- name: Run operator tests | |
env: | |
KUBEBUILDER_ASSETS: ${{ env.KUBEBUILDER_ASSETS }} | |
run: make operator-test | |
- name: Build operator docker image | |
run: make -C operator docker-build |