feat: add tests for linux (#39)

* feat: add dummy test for linux

* feat: add multiple test execution

* fix: update exec of multiple scripts for linux

* fix: execute tests with code from the branch

* fix: fail test exec if at least one test fail

* fix: typo

* wip: test if symlink work

* feat: add new test for check setup of light256 theme

* feat: when theme enabled and not set it default to dark256

* feat: increase tests coverage of checking themes activation

* refactor: rename tests_linux job

* chore: add changelog entry
This commit is contained in:
Maciej Sypien 2024-09-22 17:13:24 +02:00 committed by GitHub
parent 6595a51154
commit f01574b318
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 436 additions and 25 deletions

View file

@ -18,9 +18,24 @@ get_theme() {
}
main() {
local theme
theme=$(get_theme "$THEME_OPTION" "$DEFAULT_THEME")
tmux source-file "$CURRENT_DIR/tmux-gruvbox-${theme}.conf"
local _theme _path
_theme=$(get_theme "$THEME_OPTION" "$DEFAULT_THEME")
case "$_theme" in
light-transparent)
_theme="light-transparent"
;;
dark-transparent)
_theme="dark-transparent"
;;
light | light256)
_theme="light"
;;
dark | dark256 | *)
_theme="dark"
;;
esac
tmux source-file "${CURRENT_DIR}/tmux-gruvbox-${_theme}.conf"
}
main "$@"