diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 0000000..87fb165 --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,36 @@ +name: CI + +on: + pull_request: + branches: + - master + push: + branches: + - master + - release/* + - actions # for testing this build spec + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/setup-go@v1 + with: + go-version: '1.13.3' + - uses: actions/checkout@v2 + - name: build container + run: docker build --file Dockerfile --tag chrishirsch:$GITHUB_RUN_ID . + - uses: engineerd/setup-kind@v0.3.0 + with: + version: "v0.7.0" + + - name: Testing + run: | + kubectl cluster-info + kubectl get pods -n kube-system + kubectl get nodes + echo "current-context:" $(kubectl config current-context) + echo "environment-kubeconfig:" ${KUBECONFIG} + kind load docker-image chrishirsch:$GITHUB_RUN_ID + - name: "running end to end test" + run: ./.ci/e2e.sh