Continuous Integration for Shell Scripts
Continuous Integration for Shell Scripts
GitHub Actions workflow for automated ShellCheck and Bats test execution:
name: Lint & Test Scripts
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
- name: Run Bats Tests
run: sudo apt-get install -y bats && bats test/