Skip to content

feat: add unit tests and documentation #1

feat: add unit tests and documentation

feat: add unit tests and documentation #1

name: Test Shell Scripts
on:
push:
branches: [main]
paths:
- '.github/actions/**/*.sh'
- 'tests/**'
pull_request:
branches: [main]
paths:
- '.github/actions/**/*.sh'
- 'tests/**'
jobs:
unit-tests:
name: bats unit tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install bats
run: npm install -g bats
- name: Verify bats version
run: bats --version
- name: Run unit tests
run: bats --verbose-run tests/unit/
- name: Summarise results
if: always()
run: echo "Shell script unit tests complete."