Skip to content

Commit

Permalink
Fix/test old bash (#216)
Browse files Browse the repository at this point in the history
* test(old-bash): use tmux instead of mocking it

* quote output
  • Loading branch information
vdbe authored May 12, 2024
1 parent c056412 commit 697087f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/test.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 697087f

Please sign in to comment.