Skip to content

Commit

Permalink
Add workflow to test formulae (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
Deuchnord committed Apr 29, 2024
1 parent af94671 commit 031d866
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/test-formulae.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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: |
brew tap kosmorro/tap
rm -rf /opt/homebrew/Library/Taps/kosmorro/homebrew-tap
cp -r . /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 }}

0 comments on commit 031d866

Please sign in to comment.