mirror of
https://github.com/roosta/tmux-fuzzback.git
synced 2026-09-10 07:36:29 -04:00
30 lines
681 B
YAML
30 lines
681 B
YAML
---
|
|
name: Run tests
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
branches: [$default-branch]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
name: Testing
|
|
steps:
|
|
- name: Checkout fuzzback
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install dependencies
|
|
run: sudo apt update && sudo apt install -y expect vim fzf tmux
|
|
|
|
- name: Create tmux config
|
|
run: |
|
|
echo 'setw -g mode-keys vi' > /tmp/tmux.conf
|
|
echo "run-shell '${GITHUB_WORKSPACE}/fuzzback.tmux'" >> /tmp/tmux.conf
|
|
sudo cp /tmp/tmux.conf /etc/tmux.conf
|
|
|
|
- name: Run tests
|
|
run: |
|
|
TERM="tmux-256color" script -e -c "./tests/test_fuzzback.sh" /dev/null
|
|
|