From d04b6ff1282c13122412108732a55af112bde953 Mon Sep 17 00:00:00 2001 From: tristan-greffe Date: Wed, 13 Mar 2024 20:01:28 +0100 Subject: [PATCH] ci: implementing new workflow using kash repository [additional tests] --- scripts/init_runner.sh | 4 ++++ scripts/run_tests.sh | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/init_runner.sh b/scripts/init_runner.sh index fb0c5c8..9ad420e 100644 --- a/scripts/init_runner.sh +++ b/scripts/init_runner.sh @@ -15,6 +15,10 @@ init_github_run_tests() { install_reqs yq age sops nvm node16 node18 node20 cc_test_reporter } +init_github_additional_tests() { + install_reqs yq age sops nvm node18 node20 +} + begin_group "Init $CI_ID for $JOB_ID" init_"${CI_ID}_${JOB_ID}" diff --git a/scripts/run_tests.sh b/scripts/run_tests.sh index 852e28d..1dd6cca 100644 --- a/scripts/run_tests.sh +++ b/scripts/run_tests.sh @@ -14,18 +14,18 @@ ROOT_DIR=$(dirname "$THIS_DIR") NODE_VER=16 CI_STEP_NAME="Run tests" CODE_COVERAGE=false -while getopts "n:r:c:" option; do +while getopts "n:c:r:" option; do case $option in n) # defines node version NODE_VER=$OPTARG ;; + c) # publish code coverage + CODE_COVERAGE=true + ;; r) # report outcome to slack CI_STEP_NAME=$OPTARG trap 'slack_ci_report "$ROOT_DIR" "$CI_STEP_NAME" "$?" "$SLACK_WEBHOOK_LIBS"' EXIT ;; - c) # publish code coverage - CODE_COVERAGE=true - ;; *) ;; esac