Merge branch 'master' into dev

This commit is contained in:
florian 2022-09-29 16:25:46 +02:00
commit 67d514b53b
No known key found for this signature in database
GPG Key ID: 3D80806F12602A7C
4 changed files with 24 additions and 13 deletions

View File

@ -347,15 +347,21 @@ jobs:
ignore-unfixed: false
severity: UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL
# Prepare tests
- name: Install tests dependencies
run: pip3 install -r ./tests/requirements.txt
- name: Set variables
run: cat /opt/.runner_env >> $GITHUB_ENV
# Run tests
- name: Run Docker tests
run: ./tests/main.py "docker"
- name: Run Autoconf tests
run: ./tests/main.py "autoconf"
- name: Run Swarm tests
run: ./tests/main.py "swarm"
- name: Run Kubernetes tests
run: ./tests/main.py "kubernetes"
#- name: Run Docker tests
#run: ./tests/main.py "docker"
#- name: Run Autoconf tests
#run: ./tests/main.py "autoconf"
#- name: Run Swarm tests
#run: ./tests/main.py "swarm"
#- name: Run Kubernetes tests
#run: ./tests/main.py "kubernetes"
- name: Generate Linux packages and build test images
run: ./tests/linux.sh ${{ env.BUILD_MODE }}
- name: Run Linux Ubuntu tests
@ -534,4 +540,4 @@ jobs:
# kubeconfig: ${{ secrets.KUBE_CONFIG_STAGING }}
# - name: k8s deploy (staging)
# run: kubectl rollout restart deployment bunkerweb-controller && kubectl rollout restart daemonset bunkerweb
# run: kubectl rollout restart deployment bunkerweb-controller && kubectl rollout restart daemonset bunkerweb

View File

@ -3,8 +3,7 @@
"kinds": [
"docker",
"autoconf",
"swarm",
"kubernetes",
"kubernetes",
"linux"
],
"timeout": 120,
@ -17,4 +16,4 @@
"string": "nextcloud"
}
]
}
}

View File

@ -6,6 +6,7 @@ ENV NGINX_VERSION 1.20.2
# Install fpm
RUN dnf install -y epel-release && \
dnf install -y ruby ruby-devel make gcc redhat-rpm-config rpm-build && \
dnf module -y reset ruby && dnf module -y enable ruby:2.6 && dnf module -y install ruby:2.6/common && \
gem install fpm
# Copy dependencies sources folder

View File

@ -6,6 +6,7 @@ from os import getcwd, _exit
from os.path import isfile
from traceback import format_exc
from json import loads
from subprocess import run
path.append(getcwd() + "/utils")
path.append(getcwd() + "/tests")
@ -26,6 +27,8 @@ if not test_type in ["linux", "docker", "autoconf", "swarm", "kubernetes", "ansi
log("TESTS", "", "Wrong type argument " + test_type)
exit(1)
run("docker system prune", shell=True)
log("TESTS", "", "Starting tests for " + test_type + " ...")
ret = False
end_fun = None
@ -97,4 +100,6 @@ if not ret :
log("TESTS", "", "Test.end() failed")
exit(1)
log("TESTS", "", "All tests finished for " + test_type + " !")
log("TESTS", "", "All tests finished for " + test_type + " !")
run("docker system prune", shell=True)