platform: detect: add functions which take clients #725
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: CI E2E | |
on: | |
pull_request: | |
branches: | |
- 'main' | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
e2e-positive: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout sources | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: setup golang | |
uses: actions/setup-go@v5 | |
id: go | |
with: | |
go-version: 1.23 | |
- name: build test binary | |
run: | | |
go version | |
make build-e2e | |
- name: build tool | |
run: | | |
go version | |
make | |
- name: create K8S kind cluster | |
run: | | |
# kind is part of 20.04 image, see: https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md | |
kind version | |
# see image listing in https://github.com/kubernetes-sigs/kind/releases/tag/v0.20.0 | |
kind create cluster --config=hack/kind-config-e2e-positive.yaml --image kindest/node:v1.27.3@sha256:3966ac761ae0136263ffdb6cfd4db23ef8a83cba8a463690e98317add2c9ba72 | |
kubectl label node kind-worker node-role.kubernetes.io/worker='' | |
hack/wait-nodes-ready.sh | |
kubectl describe nodes | |
uname -a | |
- name: run E2E tests | |
run: | | |
_out/e2e.test --ginkgo.v --ginkgo.label-filter='positive' | |
e2e-negative: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout sources | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: setup golang | |
uses: actions/setup-go@v5 | |
id: go | |
with: | |
go-version: 1.23 | |
- name: build test binary | |
run: | | |
make build-e2e | |
- name: build tool | |
run: | | |
make | |
- name: create K8S kind cluster | |
run: | | |
# kind is part of 20.04 image, see: https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md | |
kind version | |
# see image listing in https://github.com/kubernetes-sigs/kind/releases/tag/v0.20.0 | |
kind create cluster --config=hack/kind-config-e2e-negative.yaml --image kindest/node:v1.27.3@sha256:3966ac761ae0136263ffdb6cfd4db23ef8a83cba8a463690e98317add2c9ba72 | |
kubectl label node kind-worker node-role.kubernetes.io/worker='' | |
hack/wait-nodes-ready.sh | |
kubectl describe nodes | |
uname -a | |
- name: run E2E tests | |
run: | | |
_out/e2e.test --ginkgo.v --ginkgo.label-filter='negative' | |
e2e-manifests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout sources | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: setup golang | |
uses: actions/setup-go@v5 | |
id: go | |
with: | |
go-version: 1.23 | |
- name: build test binary | |
run: | | |
go version | |
make build-e2e | |
- name: build tool | |
run: | | |
go version | |
make release-manifests-k8s | |
- name: create K8S kind cluster | |
run: | | |
# kind is part of 20.04 image, see: https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md | |
kind version | |
# see image listing in https://github.com/kubernetes-sigs/kind/releases/tag/v0.20.0 | |
kind create cluster --config=hack/kind-config-e2e-positive.yaml --image kindest/node:v1.27.3@sha256:3966ac761ae0136263ffdb6cfd4db23ef8a83cba8a463690e98317add2c9ba72 | |
kubectl label node kind-worker node-role.kubernetes.io/worker='' | |
hack/wait-nodes-ready.sh | |
kubectl describe nodes | |
uname -a | |
- name: run E2E tests | |
run: | | |
_out/e2e.test --ginkgo.v --ginkgo.label-filter='manifests' |