Skip to content

Merge pull request #25 from GreedyLabs/bump-relagit-0.16.11 #59

Merge pull request #25 from GreedyLabs/bump-relagit-0.16.11

Merge pull request #25 from GreedyLabs/bump-relagit-0.16.11 #59

Workflow file for this run

name: brew test-bot
on:
push:
branches:
- main
pull_request:
jobs:
test-bot:
if: "!contains(github.event.pull_request.labels.*.name, 'do-not-test')"
strategy:
matrix:
os: [ macos-26 ]
include:
- os: ubuntu-latest
container: ghcr.io/homebrew/brew:main
runs-on: ${{ matrix.os }}
container: ${{ matrix.container }}
permissions:
actions: read
checks: read
contents: read
packages: read
pull-requests: read
steps:
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Cache Homebrew Bundler RubyGems
uses: actions/cache@v4
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
- name: Base64-encode GITHUB_TOKEN for HOMEBREW_DOCKER_REGISTRY_TOKEN
id: base64-encode
if: github.event_name == 'pull_request'
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
base64_token=$(echo -n "${TOKEN}" | base64 | tr -d "\n")
echo "::add-mask::${base64_token}"
echo "token=${base64_token}" >> "${GITHUB_OUTPUT}"
- run: brew test-bot --only-formulae --root-url=https://ghcr.io/v2/greedylabs/tap
if: github.event_name == 'pull_request'
env:
HOMEBREW_DOCKER_REGISTRY_TOKEN: ${{ steps.base64-encode.outputs.token }}
- name: Upload bottles as artifact
if: always() && github.event_name == 'pull_request'
uses: actions/upload-artifact@v4
with:
name: bottles_${{ matrix.os }}
path: '*.bottle.*'