Fix/test old bash (#216)
* test(old-bash): use tmux instead of mocking it * quote output
This commit is contained in:
parent
c056412238
commit
697087f593
2 changed files with 5 additions and 7 deletions
2
.github/scripts/test.bash
vendored
2
.github/scripts/test.bash
vendored
|
@ -59,7 +59,7 @@ main() {
|
|||
exit 1
|
||||
else
|
||||
echo "Running plugin: $plugin" >&2
|
||||
output=$(tmux run-shell "$plugin" 2>&1)
|
||||
output="$(tmux run-shell "$plugin" 2>&1)"
|
||||
exit_code="$?"
|
||||
|
||||
check "$exit_code" "$output"
|
||||
|
|
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
|
@ -38,16 +38,14 @@ jobs:
|
|||
name: "Old Bash"
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: bash:3.2.57 # Bash version used by macos
|
||||
image: bash:3.2.57-alpine3.19 # Bash version used by macos
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Check Syntax is Valid
|
||||
shell: bash
|
||||
run: |
|
||||
# No tmux available in this container
|
||||
tmp="$(mktemp -d)"
|
||||
touch "$tmp/tmux"
|
||||
chmod +x "$tmp/tmux"
|
||||
export PATH="$tmp:$PATH"
|
||||
apk update
|
||||
apk add tmux
|
||||
bash --version
|
||||
tmux -V
|
||||
./.github/scripts/test.bash ./catppuccin.tmux
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue