Skip to content

docs: Phase 6 β€” CONTRIBUTING.md, pre-commit config, SECURITY.md, upda… #10

docs: Phase 6 β€” CONTRIBUTING.md, pre-commit config, SECURITY.md, upda…

docs: Phase 6 β€” CONTRIBUTING.md, pre-commit config, SECURITY.md, upda… #10

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
shellcheck:
name: ShellCheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install ShellCheck
run: sudo apt-get install -y shellcheck
- name: Run ShellCheck on all scripts
run: |
find scripts -name "*.sh" | xargs shellcheck --severity=warning
bats:
name: BATS Tests (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Install BATS (Ubuntu)
if: runner.os == 'Linux'
run: |
sudo apt-get install -y bats
# bats-support and bats-assert are bundled in tests/test_helper/
- name: Install BATS (macOS)
if: runner.os == 'macOS'
run: brew install bats-core
- name: Run BATS test suite
run: |
find tests -name '*.bats' -not -path '*/test_helper/*' | sort | xargs bats