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