Logo
Explore Help
Register Sign In
actions/actions-runner-controller
1
0
Fork 0
You've already forked actions-runner-controller
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
38644cf4e8024e151e9452d92d79e5b3c852caea
actions-runner-controller/test/entrypoint/assets/logging.sh

19 lines
277 B
Bash
Raw Normal View History

* feat: move to new run.sh container friendly file (#1244) * fix: unit tests were very broken Co-authored-by: toast-gear <toast-gear@users.noreply.github.com>
2022-03-22 19:02:51 +00:00
#!/usr/bin/env bash
Adding some unit testing for entrypoint.sh The unit tests are simulating a run for entrypoint. It creates some dummy config.sh and runsvc.sh and makes sure the logic behind entrypoint.sh is correct. Unfortunately the entrypoint.sh contains some sections that are not mockable so I had to put some logic in there too. Testing includes for now: - the normal scenario - the normal non-ephemeral scenario - the configuration failure scenario Also tested the entrypoint.sh on a real runner, still works as expected.
2021-08-02 10:11:48 +01:00
export LIGHTGREEN='\e[0;32m'
export LIGHTRED='\e[0;31m'
export WHITE='\e[0;97m'
export RESET='\e[0m'
log(){
printf "${WHITE}$@${RESET}\n" 2>&1
}
success(){
printf "${LIGHTGREEN}$@${RESET}\n" 2>&1
}
error(){
printf "${LIGHTRED}$@${RESET}\n" 2>&1
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 320ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API