name: test

on:
  push:
  pull_request:
  workflow_dispatch:

jobs:
  test:
    strategy:
      matrix:
        os: [macos-latest, ubuntu-latest]
    runs-on: ${{ matrix.os }}
    steps:
      - uses: actions/checkout@v3
      - uses: actions/checkout@v3
        with:
          repository: "aureliojargas/clitest"
          path: bin/clitest
      - run: sudo apt install zsh
        if: ${{ runner.os == 'Linux' }}
      - run: PATH=$GITHUB_WORKSPACE/bin/clitest:$PATH make test
        shell: zsh {0}
