Skip to content

Merge pull request #74 from Peefy/feat-kube-engine-pkg #276

Merge pull request #74 from Peefy/feat-kube-engine-pkg

Merge pull request #74 from Peefy/feat-kube-engine-pkg #276

name: build-and-test
on:
pull_request:
push:
branches:
- main
- "releases/*"
jobs:
build-and-test:
strategy:
matrix:
os: [macos-12, macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22
- uses: engineerd/[email protected]
if: matrix.os == 'ubuntu-latest'
with:
version: "v0.11.1"
- name: Kubernetes Testing
if: matrix.os == 'ubuntu-latest'
run: |
kubectl cluster-info
kubectl get pods -n kube-system
echo "current-context:" $(kubectl config current-context)
echo "environment-kubeconfig:" ${KUBECONFIG}
- name: Unit test
run: make test