-
Notifications
You must be signed in to change notification settings - Fork 4
38 lines (36 loc) · 1.13 KB
/
test-brew-formulae.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: test-bats-libs-formulae
on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:
jobs:
test-packages:
strategy:
fail-fast: false
matrix:
package: [bats-support, bats-assert, bats-detik, bats-file]
runs-on: macos-latest
env:
PACKAGE: ${{ matrix.package }}
steps:
- uses: actions/checkout@v2
- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Brew version output
run: brew --version
- name: INSTALL bats-core
run: |
brew list bats && brew uninstall bats || echo "bats is not present"
brew install bats-core
- name: INSTALL bats-support
if: ${{ env.PACKAGE == 'bats-assert' || env.PACKAGE == 'bats-file' }}
run: brew install --build-from-source --verbose bats-support
- name: INSTALL local formula
run: brew install --build-from-source --verbose $PACKAGE
- name: AUDIT
run: brew audit --new $PACKAGE
- name: INSTALL
run: brew install --build-from-source --verbose $PACKAGE
- name: TEST
run: brew test Formula/$PACKAGE.rb