Skip to content

update e2e to use latest version of operator (#172) #103

update e2e to use latest version of operator (#172)

update e2e to use latest version of operator (#172) #103

Workflow file for this run

name: Unit Tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ~1.20.0
- name: Create kubebuilder directory
# The default location for the etcd and kube-apiserver binaries is /kubebuilder/bin
run: sudo mkdir -p /usr/local/kubebuilder/bin
- name: Install etcd
run: |
wget -q https://github.com/etcd-io/etcd/releases/download/v3.5.0/etcd-v3.5.0-linux-amd64.tar.gz
tar xzf etcd-v3.5.0-linux-amd64.tar.gz
sudo mv etcd-v3.5.0-linux-amd64/etcd /usr/local/kubebuilder/bin/
- name: Install kube-apiserver
run: |
wget -q https://storage.googleapis.com/kubernetes-release/release/v1.22.2/bin/linux/amd64/kube-apiserver
chmod +x kube-apiserver
sudo mv kube-apiserver /usr/local/kubebuilder/bin/
- name: Run Unit Tests
run: go test -race -v ./... -coverprofile=coverage.out
- name: Convert coverage to lcov
uses: jandelgado/gcov2lcov-action@c680c0f7c7442485f1749eb2a13e54a686e76eb5 #v1.0.8
- name: Coveralls
uses: coverallsapp/github-action@95b1a2355bd0e526ad2fd62da9fd386ad4c98474 #v2.2.1
with:
flag-name: unit-test
path-to-lcov: coverage.lcov