-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (40 loc) · 1.63 KB
/
Copy pathbrew-test.yml
File metadata and controls
50 lines (40 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: brew style + audit
# Lightweight tap CI: run `brew style` and `brew audit` on the cask and
# formula so cask/formula changes are machine-verified on every PR/push.
# Deliberately NOT the full `brew test-bot` bottling pipeline — no install,
# no bottling. Casks are macOS-only, so this runs on macos-latest.
on:
pull_request:
push:
branches: [main]
workflow_dispatch:
# Cancel superseded runs on the same ref to save runner minutes.
concurrency:
group: brew-test-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
brew-style-audit:
runs-on: macos-latest
steps:
- name: Check out tap
uses: actions/checkout@v4
- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Tap the checked-out repo
# Link the checkout into Homebrew's Taps dir so `brew style`/`brew audit`
# operate on the PR's files. `brew tap <name> <path>` is rejected here
# because brew resolves the canonical GitHub remote for a named tap.
run: |
TAP_DIR="$(brew --repository)/Library/Taps/smart-mcp-proxy/homebrew-mcpproxy"
rm -rf "$TAP_DIR"
mkdir -p "$(dirname "$TAP_DIR")"
ln -s "$GITHUB_WORKSPACE" "$TAP_DIR"
brew tap # sanity: list taps
- name: brew style (cask + formula)
run: brew style smart-mcp-proxy/mcpproxy
- name: brew audit (cask, online url/sha256)
run: brew audit --tap smart-mcp-proxy/mcpproxy --cask --online mcpproxy
- name: brew audit (formula, online url/sha256)
run: brew audit --tap smart-mcp-proxy/mcpproxy --formula --online mcpproxy