-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (40 loc) · 1 KB
/
audit.yml
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
39
40
41
42
43
44
45
46
47
48
49
name: Audit & Install Formulae
on:
push:
branches:
- main
jobs:
audit:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest]
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
with:
fetch-depth: 1
- name: Update Homebrew
run: |
brew update --auto-update
- name: Install Go
run: |
brew uninstall --force go@1.21
brew cleanup -s go@1.21
brew cleanup --prune-prefix
brew install --force go
- name: Tap Repository
run: brew tap idleberg/tap
- name: Audit Formulae
run: |
for file in ./Formula/*.rb
do
echo "Auditing $file"
brew audit idleberg/tap/$(basename ${file%.rb}) --online
done
- name: Install Formulae
run: |
for file in ./Formula/*.rb
do
echo "Installing $file"
brew install idleberg/tap/$(basename ${file%.rb}) --build-from-source
done