Skip to content

Initialize repo

Initialize repo #2

Workflow file for this run

name: AppConfiguration-KubernetesProvider CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
env:
outputDirectory: ${{ github.workspace }}/out
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Run Build
run: go build -o ${{ env.outputDirectory }}/manager ./cmd/main.go
- name: Run Test
run: |
echo 'Install evntest tool'
GOBIN=${{ github.workspace }} go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
echo 'Run tests'
echo $ENVTEST
KUBEBUILDER_ASSETS=$($ENVTEST use 1.19 -p path) CGO_ENABLED=0 go test ./... -coverprofile cover.out