Skip to content

馃И Homebrew Test #41

馃И Homebrew Test

馃И Homebrew Test #41

Workflow file for this run

name: 馃И Homebrew Test
on:
push:
branches:
- main
paths-ignore:
- "**.md"
pull_request:
schedule:
- cron: "0 0 * * SAT"
jobs:
Test-Bot:
strategy:
matrix:
os: [macOS-13, macOS-14]
runs-on: ${{ matrix.os }}
steps:
- name: 馃嵑 Setup Homebrew
id: setup-homebrew
uses: Homebrew/actions/setup-homebrew@master
with:
test-bot: false
- name: 馃珯 Cache Homebrew Bundler RubyGems
id: cache
uses: actions/cache@v4
with:
path: ${{ steps.setup-homebrew.outputs.gems-path }}
key: ${{ runner.os }}-rubygems-${{ steps.setup-homebrew.outputs.gems-hash }}
restore-keys: ${{ runner.os }}-rubygems-
- name: 馃拵 Install Homebrew Bundler RubyGems
if: steps.cache.outputs.cache-hit != 'true'
run: brew install-bundler-gems
- name: 馃毎 Tap and Switch Branch
run: |
brew tap "$GITHUB_REPOSITORY"
git -C "$(brew tap-info "$GITHUB_REPOSITORY" --json | jq -r '.[].path')" switch "${GITHUB_HEAD_REF:-main}"
- name: 馃摃 Cask Readall
run: brew readall --verbose "$GITHUB_REPOSITORY"
- name: 馃拡 Cask Style
run: brew style --debug --cask "$GITHUB_REPOSITORY"
- name: 馃帳 Cask Audit
run: brew audit --debug --strict --cask --tap="$GITHUB_REPOSITORY"
- name: 馃摬 Cask Install
run: |
for cask in $(brew search "${GITHUB_REPOSITORY/homebrew-/}"); do
brew install --cask --verbose "$cask"
done