Skip to content

Commit

Permalink
fix ci/cd
Browse files Browse the repository at this point in the history
  • Loading branch information
islemci authored Dec 12, 2024
1 parent f0c9963 commit 0c6f63f
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Test on devices
name: Test on VMs

on:
pull_request:
branches:
- main
workflow_dispatch:

jobs:
test:
Expand All @@ -21,17 +22,30 @@ jobs:
run: chmod +x ./cliwrap

- name: Test CLIwrap on ${{ matrix.os }} with ${{ matrix.shell }}
shell: ${{ matrix.shell }}
run: |
./cliwrap -h
./cliwrap -zsh
./cliwrap -bash
./cliwrap -fish
echo "Running on ${{ matrix.os }} with ${{ matrix.shell }}"
if [ "${{ matrix.shell }}" = "bash" ]; then
bash ./cliwrap -h
bash ./cliwrap -zsh
bash ./cliwrap -bash
bash ./cliwrap -fish
elif [ "${{ matrix.shell }}" = "zsh" ]; then
zsh ./cliwrap -h
zsh ./cliwrap -zsh
zsh ./cliwrap -bash
zsh ./cliwrap -fish
fi
# Simulate a history file for testing
echo -e "ls\ncd ..\ngit status" > test_history
export HOME=$(pwd)
cp test_history .zsh_history
cp test_history .bash_history
mkdir -p .local/share/fish
cp test_history .local/share/fish/fish_history
./cliwrap
if [ "${{ matrix.shell }}" = "bash" ]; then
bash ./cliwrap
elif [ "${{ matrix.shell }}" = "zsh" ]; then
zsh ./cliwrap
fi

0 comments on commit 0c6f63f

Please sign in to comment.