Skip to content

bump kind version and remove test files check #8

bump kind version and remove test files check

bump kind version and remove test files check #8

Workflow file for this run

name: test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
services:
kind:
image: kindest/node:v1.30.0
options: --privileged
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.22'
- name: Install kubectl
run: |
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x kubectl
sudo mv kubectl /usr/local/bin/
- name: Set up kind
run: |
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.11.1/kind-linux-amd64
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind
- name: Create Kubernetes cluster
run: kind create cluster --wait 5m
- name: Run tests
env:
KUBECONFIG: ${{ secrets.KUBECONFIG }}
run: |
go test -v ./...
- name: Delete cluster
run: kind delete cluster