Skip to content

Bump actions/cache from 4.2.3 to 4.2.4 (#96) #737

Bump actions/cache from 4.2.3 to 4.2.4 (#96)

Bump actions/cache from 4.2.3 to 4.2.4 (#96) #737

Workflow file for this run

name: brew test-bot
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions: {}
jobs:
test-bot:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
permissions:
contents: read
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
with:
egress-policy: audit
- run: echo "/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin" >> "$GITHUB_PATH"
if: ${{ matrix.os == 'ubuntu-latest' }}
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@4e53f9c809b54e432fc49f7ee18e56ee4aa45bdc # master
- name: Cache Homebrew Bundler RubyGems
id: cache
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
with:
path: ${{ steps.set-up-homebrew.outputs.gems-path }}
key: ${{ runner.os }}-rubygems-${{ steps.set-up-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
- run: brew test-bot --only-cleanup-before
- run: brew test-bot --only-setup
# TODO: re-enable, or figure out how to bypass the style error:
# C: [Correctable] Style/SoleNestedConditional: Consider merging nested conditions into outer if conditions.
# however this syntax is generated by goreleaser itself
# - 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
path: '*.bottle.*'