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
|
||||
with:
|
||||
domain: ${{github.repository_owner}}
|
||||
- name: prepare k3d
|
||||
run: |
|
||||
wget -q -O - https://raw.githubusercontent.com/rancher/k3d/main/install.sh | bash
|
||||
- name: Create k8s Kind Cluster
|
||||
uses: helm/kind-action@v1.2.0
|
||||
- name: run integration
|
||||
run: |
|
||||
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
|
||||
|
||||
test-integration:
|
||||
k3d cluster create || exit 0
|
||||
k3d kubeconfig write -o ~/.kube/config --overwrite
|
||||
coverage run manage.py test -v 3 tests/integration
|
||||
|
||||
test-e2e:
|
||||
|
|
|
@ -7,8 +7,6 @@ sudo chmod +x /usr/local/bin/docker-compose
|
|||
# Setup nodejs
|
||||
curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
|
||||
sudo apt-get install -y nodejs
|
||||
# Setup k3d
|
||||
curl -s https://raw.githubusercontent.com/rancher/k3d/main/install.sh | bash
|
||||
# Setup python
|
||||
sudo apt install -y python3.9 python3.9-dev python3-pip libxmlsec1-dev pkg-config
|
||||
# Setup docker
|
||||
|
|
Reference in New Issue