Skip to content

Integration tests

Integration tests #29

Workflow file for this run

---
name: "Integration tests"
on:
push:
pull_request:
branches:
- master
jobs:
build_image:
name: Build k8s-toolbox desk
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build image
run: |
./_desk/build-image.sh
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Push images to container registry
run: |
./_desk/push-image.sh
install_k8s:
name: Install k8s and run tests
runs-on: ubuntu-20.04
steps:
- uses: actions/setup-go@v3
with:
go-version: '^1.20.3'
- run: go version
- name: Checkout code
uses: actions/checkout@v2
- name: Build and install k8s-toolbox
run: |
go install .
- name: Install k8s using kind
run: |
ktbx install kind
ktbx create --single --calico
kubectl get pods -n kube-system
kubectl get nodes
- name: Start nginx
run: |
./itest/run-nginx.sh
- name: Test nginx
run: |
./itest/test-nginx.sh