Skip to content

Bump k8s.io/api from 0.29.0 to 0.29.2 #656

Bump k8s.io/api from 0.29.0 to 0.29.2

Bump k8s.io/api from 0.29.0 to 0.29.2 #656

Workflow file for this run

name: Compile & Test
on:
push:
branches:
- master
pull_request:
jobs:
verify_helm:
name: Verify Helm chart
runs-on: ubuntu-latest
strategy:
matrix:
helm: [ '3.10.3' ]
steps:
- uses: actions/checkout@v2
- name: Set up Helm
run: |
wget https://get.helm.sh/helm-v${{ matrix.helm }}-linux-amd64.tar.gz -O /tmp/helm.tar.gz
tar xzf /tmp/helm.tar.gz -C /tmp --strip-components=1
chmod +x /tmp/helm
- name: Test template rendering
run: /tmp/helm template ./deploy/helm-chart/kubernetes-replicator/.
- name: Lint chart
run: /tmp/helm lint ./deploy/helm-chart/kubernetes-replicator/
build:
name: Compile
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: "1.20"
- name: Compile
run: go build .
- name: Go vet
run: go vet ./...
tests:
name: Run tests suite
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: "1.20"
- uses: actions/checkout@v2
- name: Set up KIND
run: |
wget -O ./kind https://github.com/kubernetes-sigs/kind/releases/download/v0.17.0/kind-linux-amd64
chmod +x ./kind
- name: Start cluster
run: |
./kind create cluster
./kind get kubeconfig > ./kind-kubeconfig
- name: Run unit tests
run: KUBECONFIG=$PWD/kind-kubeconfig go test ./...