71 lines
1.6 KiB
YAML
Executable file
71 lines
1.6 KiB
YAML
Executable file
name: Test Scripts
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
test-scripts:
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
matrix:
|
|
os: [macos-latest, ubuntu-latest]
|
|
|
|
steps:
|
|
- name: install bats
|
|
uses: mig4/setup-bats@v1
|
|
with:
|
|
bats-version: 1.2.1
|
|
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: 3.x
|
|
|
|
- name: Install tmux on macOS
|
|
if: startsWith(matrix.os, 'macos')
|
|
run: |
|
|
if ! command -v brew &> /dev/null; then
|
|
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/\
|
|
Homebrew/install/HEAD/install.sh)"
|
|
fi
|
|
brew install tmux fd fzf
|
|
|
|
- name: Install tmux on Ubuntu
|
|
if: startsWith(matrix.os, 'ubuntu')
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y tmux
|
|
sudo apt-get install -y fd-find
|
|
sudo apt-get install -y fzf
|
|
sudo apt-get install -y bats
|
|
|
|
- name: Set up tmux environment
|
|
run: |
|
|
tmux new-session -d -s mysession
|
|
tmux new-window -t mysession:1 -n mywindow
|
|
|
|
- name: Test aactivator.py
|
|
run: |
|
|
python aactivator.py
|
|
|
|
- name: Test tmux_sessionizer
|
|
run: |
|
|
bats tests/test_tmux_sessionizer.bats
|
|
|
|
- name: Test tmux_windownizer
|
|
run: |
|
|
bats tests/test_tmux_windownizer.bats
|
|
|
|
- name: Test setup_dev_environment.sh
|
|
run: |
|
|
chmod +x setup_dev_env
|
|
./setup_dev_env
|