update test #38
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Audit & Install Formulae | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
audit: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest] | |
steps: | |
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | |
with: | |
fetch-depth: 1 | |
- name: Install Homebrew | |
if: matrix.os == 'ubuntu-latest' | |
uses: Homebrew/actions/setup-homebrew@master | |
- name: Update Homebrew | |
if: matrix.os == 'macos-latest' | |
run: | | |
brew update --auto-update | |
- name: Install Go | |
if: matrix.os == 'macos-latest' | |
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/asahi | |
- name: Audit Formulae | |
run: | | |
for file in ./Formula/*.rb | |
do | |
echo "Auditing $file" | |
brew audit idleberg/asahi/$(basename ${file%.rb}) --online | |
done | |
- name: Install Formulae | |
run: | | |
for file in ./Formula/*.rb | |
do | |
echo "Installing $file" | |
brew install idleberg/asahi/$(basename ${file%.rb}) --build-from-source | |
done |