Skip to content

ci: sync actionlint workflow from upstream #78

ci: sync actionlint workflow from upstream

ci: sync actionlint workflow from upstream #78

Workflow file for this run

name: brew test-bot
on:
push:
branches:
- main
pull_request:
jobs:
test-bot:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Cache Homebrew Bundler RubyGems
id: cache
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
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-
- run: brew test-bot --only-cleanup-before
- run: brew test-bot --only-setup
- run: brew test-bot --only-tap-syntax
# Skipping formula-related steps for cask-only tap.
# Formula tests and bottle uploads are not applicable to casks.
# - 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@v4
# with:
# name: bottles
# path: '*.bottle.*'