Skip to content

Commit 56848f6

Browse files
committed
Rename Make commands and add additional information when prettier is not installed
1 parent cdf896d commit 56848f6

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ jobs:
279279

280280
- name: Check code formatting
281281
if: success() || failure()
282-
run: make lint
282+
run: make check-format
283283

284284
e2e:
285285
runs-on: ubuntu-22.04

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ COMPONENTS = mithril-common mithril-stm mithril-aggregator mithril-client mithri
22
internal/mithril-persistence internal/mithril-doc-derive internal/mithril-doc internal/mithril-build-script \
33
demo/protocol-demo mithril-test-lab/mithril-end-to-end
44
GOALS := $(or $(MAKECMDGOALS),all)
5-
NON_COMPONENT_GOALS := lint format
5+
NON_COMPONENT_GOALS := check-format format
66

77
.PHONY: $(GOALS) $(COMPONENTS) $(NON_COMPONENT_GOALS)
88

@@ -11,8 +11,11 @@ $(filter-out $(NON_COMPONENT_GOALS),$(GOALS)): $(COMPONENTS)
1111
$(COMPONENTS):
1212
$(MAKE) -C $@ $(MAKECMDGOALS)
1313

14-
lint:
14+
check-format:
15+
@echo 'Note: Rust is not checked by this recipe, use `make check`'
16+
@which prettier >/dev/null || echo 'It seems 'prettier' is not installed or not in the path. see https://prettier.io/docs/en/install';
1517
prettier --check .
1618

1719
format:
20+
@which prettier >/dev/null || echo 'It seems 'prettier' is not installed or not in the path. see https://prettier.io/docs/en/install';
1821
prettier --write .

0 commit comments

Comments
 (0)