Skip to content

Commit

Permalink
ci: implementing new workflow using kash repository [additional tests]
Browse files Browse the repository at this point in the history
  • Loading branch information
tristan-greffe committed Mar 13, 2024
1 parent a3013d1 commit d04b6ff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions scripts/init_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
8 changes: 4 additions & 4 deletions scripts/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d04b6ff

Please sign in to comment.