Skip to content

Update kubernetes packages #143

Update kubernetes packages

Update kubernetes packages #143

Workflow file for this run

name: envtest
on:
pull_request:
branches:
- 'master'
push:
branches:
- 'master'
jobs:
unit-test:
runs-on: ubuntu-latest
env:
DOCKER_BUILDKIT: "1"
steps:
-
# https://github.com/actions/checkout
name: Checkout
uses: actions/checkout@v3
-
name: UnitTest
run: |
sudo apt-get update
sudo apt-get install -y zfsutils-linux
sudo truncate -s 2G /disk.img
sudo zpool create tank /disk.img
sudo zfs create tank/envtest
LOCALBIN=$(pwd)/bin
ENVTEST=${LOCALBIN}/setup-envtest
ENVTEST_K8S_VERSION=1.25.0
GOBIN=${LOCALBIN} go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
sudo KUBEBUILDER_ASSETS="$(${ENVTEST} use ${ENVTEST_K8S_VERSION} --bin-dir ${LOCALBIN} -p path)" go test ./... -coverprofile cover.out