Skip to content

regression test slirp4netns #530

regression test slirp4netns

regression test slirp4netns #530

# ref, https://stackoverflow.com/questions/71791532/github-actions-homebrew-install-terraform-version-lags-behind
name: brew-regression
# ref, https://github.blog/changelog/2022-09-26-github-actions-dynamic-names-for-workflow-runs/
run-name: regression test ${{inputs.formula}}
on:
workflow_dispatch:
inputs:
formula:
description: Formula name
required: true
env:
# `test` and `audit` are test dev commands
HOMEBREW_DEVELOPER: 1
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_NO_ANALYTICS: 1
# save some time
HOMEBREW_NO_INSTALL_CLEANUP: 1
# no need to upgrade dependants
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
# https://github.com/Homebrew/homebrew-test-bot/pull/868
HOMEBREW_NO_INSTALL_FROM_API: 1
jobs:
# macos-build:
# name: ${{ matrix.os }} test
# runs-on: ${{ matrix.os }}
# strategy:
# fail-fast: false
# matrix:
# os:
# - macos-12
# - macos-13
# - macos-14
# steps:
# - run: brew update
# - run: brew install ${{inputs.formula}} && brew test ${{inputs.formula}}
# - run: brew linkage --cached ${{inputs.formula}}
linux-build:
name: ubuntu-24.04 test
runs-on: ubuntu-24.04
steps:
- name: Set up Homebrew
id: set-up-homebrew
# https://github.com/Homebrew/actions/tree/master/setup-homebrew
uses: Homebrew/actions/setup-homebrew@00f483c95eacf401cf9f4aa3746964071a747334
- run: brew update
- run: brew install ${{inputs.formula}} && brew test ${{inputs.formula}}
- run: brew linkage --cached ${{inputs.formula}}