Skip to content

Commit a2deffa

Browse files
committed
ci: format generated proto files with prettier after proto:generate
1 parent fa5caa5 commit a2deffa

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ jobs:
2929
- name: Generate proto types
3030
run: npm run proto:generate
3131

32+
- name: Format generated files
33+
run: npx prettier --write "src/generated/**/*.ts"
34+
3235
- name: Lint
3336
run: npm run lint
3437

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ jobs:
2929
- name: Generate proto types
3030
run: npm run proto:generate
3131

32+
- name: Format generated files
33+
run: npx prettier --write "src/generated/**/*.ts"
34+
3235
- name: Run unit tests with coverage
3336
run: npm run test:cov
3437
env:

0 commit comments

Comments
 (0)