name: CI
on: [push, pull_request]

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os: [ubuntu-latest, macos-latest]
    
    steps:
    - uses: actions/checkout@v4
    - name: Install bats
      run: git clone --depth 1 --branch v1.10.0 https://github.com/bats-core/bats-core.git bats
    - name: Run tests
      run: PATH="./bats/bin:$PATH" test/run
