Skip to content

Commit f2a1994

Browse files
authored
ci: Add Prettier setup and formatting steps for Go and markdown files (#105)
Signed-off-by: Eden Reich <eden.reich@gmail.com>
1 parent 17764f3 commit f2a1994

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,15 @@ jobs:
3939
with:
4040
node-version: 'lts/*'
4141

42+
- name: Install prettier
43+
run: npm install -g prettier
44+
45+
- name: Format Go files
46+
run: find . -name '*.go' -exec gofmt -w {} \;
47+
48+
- name: Format markdown files
49+
run: find . -name '*.md' -exec prettier -w {} \;
50+
4251
- name: Tidy Go modules
4352
run: find . -name 'go.mod' -execdir go mod tidy \;
4453

.github/workflows/claude.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ jobs:
4949
run: |
5050
curl -s https://taskfile.dev/install.sh | sh -s -- -b /usr/local/bin v3.45.4
5151
52+
- name: Setup Node.js
53+
uses: actions/setup-node@v5
54+
with:
55+
node-version: 'lts/*'
56+
57+
- name: Install prettier
58+
run: npm install -g prettier
59+
5260
- name: Run Claude Code
5361
id: claude
5462
uses: anthropics/claude-code-action@beta

0 commit comments

Comments
 (0)