-
Notifications
You must be signed in to change notification settings - Fork 2
83 lines (71 loc) · 2.56 KB
/
renovate-verify.yml
File metadata and controls
83 lines (71 loc) · 2.56 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: renovate verify
on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- 'Formula/qv.rb'
- 'Formula/bose.rb'
jobs:
verify:
if: github.event.pull_request.user.login == 'renovate[bot]'
strategy:
matrix:
os: [ubuntu-24.04, macos-15]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Detect formula changes
id: formula-changes
uses: dorny/paths-filter@v4
with:
filters: |
qv:
- 'Formula/qv.rb'
bose:
- 'Formula/bose.rb'
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Link checkout as tap source
run: |
set -euo pipefail
tap_dir="$(brew --repository)/Library/Taps/timvw/homebrew-tap"
rm -rf "$tap_dir"
mkdir -p "$(dirname "$tap_dir")"
ln -s "$PWD" "$tap_dir"
- name: Cache Homebrew Bundler RubyGems
uses: actions/cache@v5
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 qv (mac only)
if: steps.formula-changes.outputs.qv == 'true' && matrix.os == 'macos-15'
run: brew install --build-bottle timvw/tap/qv
- name: Test qv (mac only)
if: steps.formula-changes.outputs.qv == 'true' && matrix.os == 'macos-15'
run: |
brew test timvw/tap/qv
brew audit --strict timvw/tap/qv
- name: Upload qv bottles
if: steps.formula-changes.outputs.qv == 'true' && matrix.os == 'macos-15'
uses: actions/upload-artifact@v7
with:
name: qv-bottles-${{ matrix.os }}
path: '*.bottle.*'
- name: Install bose (mac only)
if: steps.formula-changes.outputs.bose == 'true' && matrix.os == 'macos-15'
run: |
brew install timvw/tap/bose
file "$(which bose)"
- name: Test bose (mac only)
if: steps.formula-changes.outputs.bose == 'true' && matrix.os == 'macos-15'
run: |
brew test timvw/tap/bose
brew audit --strict timvw/tap/bose
- name: Verify bose artifact available (linux)
if: steps.formula-changes.outputs.bose == 'true' && matrix.os == 'ubuntu-24.04'
run: |
bose_url=$(brew ruby -e 'puts Formula["timvw/tap/bose"].stable.url')
curl --head --fail "$bose_url"