Skip to content

Commit 6ca804c

Browse files
auge2uclaude
andcommitted
Add GitHub Actions CI workflow
- Test Homebrew formula installation on macOS - Test script directly with fzf - Run ShellCheck for linting 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 8d92ca4 commit 6ca804c

1 file changed

Lines changed: 60 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test-formula:
11+
name: Test Homebrew Formula
12+
runs-on: macos-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Install formula from local tap
18+
run: |
19+
brew tap auge2u/uni-nerd-font "$PWD"
20+
brew install nerd-font-manager
21+
22+
- name: Test formula
23+
run: brew test nerd-font-manager
24+
25+
- name: Verify installation
26+
run: |
27+
nerd-font-manager --help
28+
which nerd-font-manager
29+
30+
test-script:
31+
name: Test Script Directly
32+
runs-on: macos-latest
33+
steps:
34+
- name: Checkout
35+
uses: actions/checkout@v4
36+
37+
- name: Install fzf
38+
run: brew install fzf
39+
40+
- name: Make script executable
41+
run: chmod +x nerd-font-manager.sh
42+
43+
- name: Test help flag
44+
run: ./nerd-font-manager.sh --help
45+
46+
- name: Test syntax
47+
run: bash -n nerd-font-manager.sh
48+
49+
shellcheck:
50+
name: ShellCheck
51+
runs-on: ubuntu-latest
52+
steps:
53+
- name: Checkout
54+
uses: actions/checkout@v4
55+
56+
- name: Run ShellCheck
57+
uses: ludeeus/action-shellcheck@master
58+
with:
59+
scandir: '.'
60+
ignore_paths: 'completions'

0 commit comments

Comments
 (0)