ci: use native kind action to test integration
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
b7ef076798
commit
7c1a7bfd9d
|
@ -200,9 +200,8 @@ jobs:
|
||||||
- uses: testspace-com/setup-testspace@v1
|
- uses: testspace-com/setup-testspace@v1
|
||||||
with:
|
with:
|
||||||
domain: ${{github.repository_owner}}
|
domain: ${{github.repository_owner}}
|
||||||
- name: prepare k3d
|
- name: Create k8s Kind Cluster
|
||||||
run: |
|
uses: helm/kind-action@v1.2.0
|
||||||
wget -q -O - https://raw.githubusercontent.com/rancher/k3d/main/install.sh | bash
|
|
||||||
- name: run integration
|
- name: run integration
|
||||||
run: |
|
run: |
|
||||||
pipenv run make test-integration
|
pipenv run make test-integration
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -7,8 +7,6 @@ NPM_VERSION = $(shell python -m scripts.npm_version)
|
||||||
all: lint-fix lint test gen
|
all: lint-fix lint test gen
|
||||||
|
|
||||||
test-integration:
|
test-integration:
|
||||||
k3d cluster create || exit 0
|
|
||||||
k3d kubeconfig write -o ~/.kube/config --overwrite
|
|
||||||
coverage run manage.py test -v 3 tests/integration
|
coverage run manage.py test -v 3 tests/integration
|
||||||
|
|
||||||
test-e2e:
|
test-e2e:
|
||||||
|
|
|
@ -7,8 +7,6 @@ sudo chmod +x /usr/local/bin/docker-compose
|
||||||
# Setup nodejs
|
# Setup nodejs
|
||||||
curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
|
curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
|
||||||
sudo apt-get install -y nodejs
|
sudo apt-get install -y nodejs
|
||||||
# Setup k3d
|
|
||||||
curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | bash
|
|
||||||
# Setup python
|
# Setup python
|
||||||
sudo apt install -y python3.9 python3.9-dev python3-pip libxmlsec1-dev pkg-config
|
sudo apt install -y python3.9 python3.9-dev python3-pip libxmlsec1-dev pkg-config
|
||||||
# Setup docker
|
# Setup docker
|
||||||
|
|
Reference in New Issue