File tree Expand file tree Collapse file tree 1 file changed +58
-0
lines changed
Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Homebrew Formula
2+
3+ on :
4+ workflow_dispatch :
5+ pull_request :
6+ paths :
7+ - ' Formula/ssh-studio.rb'
8+ - ' .github/workflows/brew.yml'
9+ push :
10+ branches : [ master ]
11+
12+ jobs :
13+ test-formula :
14+ strategy :
15+ matrix :
16+ os : [macos-13, macos-14]
17+ runs-on : ${{ matrix.os }}
18+
19+ steps :
20+ - name : Checkout code
21+ uses : actions/checkout@v4
22+
23+ - name : Setup Homebrew environment
24+ run : |
25+ brew update-reset
26+ brew --version
27+ brew config
28+
29+ - name : Style check
30+ run : |
31+ brew style ./Formula/ssh-studio.rb
32+
33+ - name : Audit formula
34+ run : |
35+ brew audit --new-formula --strict ./Formula/ssh-studio.rb
36+
37+ - name : Build and install
38+ run : |
39+ brew install --build-from-source ./Formula/ssh-studio.rb
40+
41+ - name : Test formula
42+ run : |
43+ ssh-studio --help
44+ brew test ssh-studio
45+
46+ - name : Test app bundle
47+ run : |
48+ # Test the .app bundle was created
49+ ls -la "$(brew --prefix ssh-studio)/Applications/SSH Studio.app"
50+ # Test the launcher script
51+ "$(brew --prefix ssh-studio)/Applications/SSH Studio.app/Contents/MacOS/ssh-studio" --help
52+
53+ - name : Create bottle (optional)
54+ run : |
55+ brew uninstall --force ssh-studio || true
56+ brew install --build-bottle ./Formula/ssh-studio.rb
57+ brew bottle --json ssh-studio
58+ continue-on-error : true
You can’t perform that action at this time.
0 commit comments