Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,22 @@ on:

jobs:
test:
runs-on: ubuntu-slim
strategy:
matrix:
os: [ubuntu-slim, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y bash zsh
case "${{ matrix.os }}" in
"ubuntu-slim")
sudo apt-get update && sudo apt-get install -y bash zsh
;;
"macos-latest")
brew install bash zsh
;;
esac
- name: Run tests
run: |
if ! ./tests/run-test.sh; then
Expand Down
4 changes: 2 additions & 2 deletions tests/TEST.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ echo "h7 test"

```bash
echo "bash test"
echo "$BASH_VERSION"
[ -n "$BASH_VERSION" ] && echo "This is bash"
```

## Zsh Shell

```zsh
echo "zsh test"
echo "$ZSH_VERSION"
[ -n "$ZSH_VERSION" ] && echo "This is zsh"
```

## Shell Variant
Expand Down
6 changes: 4 additions & 2 deletions tests/stderr.log
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,15 @@ cute: Task not found: 'h7'
--- Running test: 'Bash Shell' ---
$ cute Bash Shell
[Bash Shell]$ echo 'bash test'
[Bash Shell]$ echo '5.2.21(1)-release'
[Bash Shell]$ '[' -n '5.2.21(1)-release' ']'
[Bash Shell]$ echo 'This is bash'
--- Test 'Bash Shell' passed. ---

--- Running test: 'Zsh Shell' ---
$ cute Zsh Shell
[Zsh Shell]$ echo 'zsh test'
[Zsh Shell]$ echo 5.9
[Zsh Shell]$ [ -n 5.9 ']'
[Zsh Shell]$ echo 'This is zsh'
--- Test 'Zsh Shell' passed. ---

--- Running test: 'Shell Variant' ---
Expand Down
4 changes: 2 additions & 2 deletions tests/stdout.log
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ $ cute h7
--- Running test: 'Bash Shell' ---
$ cute Bash Shell
bash test
5.2.21(1)-release
This is bash
--- Test 'Bash Shell' passed. ---

--- Running test: 'Zsh Shell' ---
$ cute Zsh Shell
zsh test
5.9
This is zsh
--- Test 'Zsh Shell' passed. ---

--- Running test: 'Shell Variant' ---
Expand Down
Loading