mirror of
https://github.com/roosta/tmux-fuzzback.git
synced 2026-09-09 23:26:29 -04:00
ci: add github test workflow
This commit is contained in:
parent
a82d81db01
commit
22a900adc9
29
.github/workflows/test.yml
vendored
29
.github/workflows/test.yml
vendored
|
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
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
|
||||
|
||||
Loading…
Reference in a new issue