test: uninstall go #30
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 | |
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 != 'ubuntu-latest' | |
run: | | |
brew update --auto-update | |
- name: Reinstall Go | |
if: matrix.os != 'ubuntu-latest' | |
run: | | |
brew uninstall --force go | |
brew cleanup -s go | |
brew cleanup --prune-prefix | |
brew install go --force | |
- name: Tap Repository | |
run: brew tap idleberg/asahi | |
- name: Audit Formulas | |
run: | | |
for file in ./Formula/*.rb | |
do | |
echo "Auditing $file" | |
brew audit idleberg/asahi/$(basename ${file%.rb}) --online | |
done | |
- name: Install Formulas | |
run: | | |
for file in ./Formula/*.rb | |
do | |
echo "Installing $file" | |
brew install idleberg/asahi/$(basename ${file%.rb}) --build-from-source | |
done |