Skip to content

Merge pull request #114 from nodenv/batch-and-delay-dependabot-prs #32

Merge pull request #114 from nodenv/batch-and-delay-dependabot-prs

Merge pull request #114 from nodenv/batch-and-delay-dependabot-prs #32

Workflow file for this run

name: brew test-bot
on:
push:
branches: [main]
pull_request:
permissions: {}
jobs:
test-bot:
strategy:
matrix:
os: [ubuntu-22.04, macos-13, macos-15]
runs-on: ${{ matrix.os }}
permissions:
actions: read
checks: read
contents: read
pull-requests: read
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
with:
egress-policy: audit
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@6c79ae0677a9b0b8046a936b4ada8980885eafb8 # main
with:
token: ${{ github.token }}
- name: Cache Homebrew Bundler RubyGems
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ${{ steps.set-up-homebrew.outputs.gems-path }}
key: ${{ matrix.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
restore-keys: ${{ matrix.os }}-rubygems-
- run: brew test-bot --only-cleanup-before
- run: brew test-bot --only-setup
- run: brew test-bot --only-tap-syntax
- run: brew test-bot --only-formulae
if: github.event_name == 'pull_request'
- name: Upload bottles as artifact
if: always() && github.event_name == 'pull_request'
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: bottles_${{ matrix.os }}
path: "*.bottle.*"