.local-bin/.github/workflows/test_script.yml
2023-11-30 00:30:32 -05:00

63 lines
1.4 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: 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
- name: Install tmux on Ubuntu
if: startsWith(matrix.os, 'ubuntu')
run: sudo apt-get install tmux
- name: Test aactivator.py
run: |
python aactivator.py
- name: Test tmux_sessionizer
run: |
chmod +x tmux_sessionizer
./tmux_sessionizer
- name: Test tmux_windownizer
run: |
chmod +x tmux_windownizer
./tmux_windownizer
- name: Test update_brew_lists
run: |
chmod +x update_brew_lists
./update_brew_lists
- name: Test setup_dev_environment.sh
run: |
chmod +x setup_dev_environment.sh
./setup_dev_environment.sh