Skip to content

Add workflow to test formulae #4

Add workflow to test formulae

Add workflow to test formulae #4

Workflow file for this run

name: Test formulae install
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
run-tests:
name: Test install / ${{ matrix.formula.name }}
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
formula:
- name: "kosmorro"
test: "kosmorro --version"
steps:
- uses: actions/checkout@v4
- name: Add tap
run: |
mkdir -p /opt/homebrew/Library/Taps/kosmorro
ln -s . /opt/homebrew/Library/Taps/kosmorro/homebrew-tap
- name: Install `${{ matrix.formula.name }}` formula
run: |
brew install ${{ matrix.formula.name }}
- name: Test that the program is working
run: |
${{ matrix.formula.test }}