Skip to content
This repository was archived by the owner on Mar 8, 2026. It is now read-only.

Commit 97fecd7

Browse files
authored
Merge pull request #26 from gripmock/homebrew
Add support homebrew
2 parents 63ff480 + a9ee970 commit 97fecd7

File tree

2 files changed

+88
-8
lines changed

2 files changed

+88
-8
lines changed

.github/workflows/release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
on:
2+
release:
3+
types: [published]
4+
5+
jobs:
6+
homebrew-releaser:
7+
runs-on: ubuntu-latest
8+
name: homebrew-releaser
9+
steps:
10+
- name: Release project to Homebrew tap
11+
uses: Justintime50/homebrew-releaser@v2
12+
with:
13+
github_token: ${{ secrets.HOMEBREW_TOKEN }}
14+
15+
homebrew_owner: gripmock
16+
homebrew_tap: homebrew-tap
17+
formula_folder: Formula
18+
19+
install: 'bin.install "grpctestify.sh" => "grpctestify"'
20+
21+
test: 'assert_match("#{version}", shell_output("#{bin}/grpctestify --version"))'
22+
23+
depends_on: |
24+
"grpcurl"
25+
"jq"
26+
27+
version: ${{ github.ref_name }}
28+
29+
target_darwin_amd64: true
30+
target_darwin_arm64: true
31+
target_linux_amd64: true
32+
target_linux_arm64: true
33+
update_readme_table: false
34+
35+
skip_commit: false
36+
37+
debug: false

README.md

Lines changed: 51 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,26 +28,69 @@ Automate gRPC server testing with configuration files. Validate endpoints, reque
2828
- [jq](https://stedolan.github.io/jq/)
2929

3030
## Editor Support 🚀
31-
Enhance your .gctf workflow with official [VS Code extension](https://marketplace.visualstudio.com/items?itemName=gripmock.grpctestify):
32-
- Syntax highlighting for .gctf files
31+
Enhance your `.gctf` workflow with the official [VS Code extension](https://marketplace.visualstudio.com/items?itemName=gripmock.grpctestify):
32+
- Syntax highlighting for `.gctf` files
3333
- Snippets for quick test creation
3434
- Section folding
3535
- Validation warnings
3636
- Quick documentation
3737

3838
## Installation
39+
40+
### Using Homebrew (macOS/Linux)
3941
```bash
40-
# macOS
41-
brew install grpcurl jq
42+
# Tap the repository
43+
brew tap gripmock/tap
4244

43-
# Ubuntu/Debian
44-
sudo apt install -y grpcurl jq
45+
# Install grpctestify
46+
brew install grpctestify
4547

4648
# Verify installation
47-
grpcurl --version
48-
jq --version
49+
grpctestify --version
4950
```
5051

52+
### Manual Installation (Dependencies)
53+
1. **Install Dependencies**:
54+
```bash
55+
# macOS
56+
brew install grpcurl jq
57+
58+
# Ubuntu/Debian
59+
sudo apt install -y grpcurl jq
60+
61+
# Verify installation
62+
grpcurl --version
63+
jq --version
64+
```
65+
66+
2. **Download the Script**:
67+
Use `curl` or `wget` to download the `grpctestify.sh` script from the latest release:
68+
```bash
69+
# Using curl
70+
curl -LO https://github.com/gripmock/grpctestify/releases/latest/download/grpctestify.sh
71+
72+
# Using wget
73+
wget https://github.com/gripmock/grpctestify/releases/latest/download/grpctestify.sh
74+
```
75+
76+
3. **Make the Script Executable**:
77+
After downloading, make the script executable:
78+
```bash
79+
chmod +x grpctestify.sh
80+
```
81+
82+
4. **Move the Script to a Directory in Your PATH**:
83+
Optionally, move the script to a directory in your `PATH` for easier access:
84+
```bash
85+
sudo mv grpctestify.sh /usr/local/bin/grpctestify
86+
```
87+
88+
5. **Verify Installation**:
89+
Check that the script is working correctly:
90+
```bash
91+
grpctestify --version
92+
```
93+
5194
## Usage
5295
```bash
5396
# Single test file

0 commit comments

Comments
 (0)