File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -279,7 +279,7 @@ jobs:
279
279
280
280
- name : Check code formatting
281
281
if : success() || failure()
282
- run : make lint
282
+ run : make check-format
283
283
284
284
e2e :
285
285
runs-on : ubuntu-22.04
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ COMPONENTS = mithril-common mithril-stm mithril-aggregator mithril-client mithri
2
2
internal/mithril-persistence internal/mithril-doc-derive internal/mithril-doc internal/mithril-build-script \
3
3
demo/protocol-demo mithril-test-lab/mithril-end-to-end
4
4
GOALS := $(or $(MAKECMDGOALS ) ,all)
5
- NON_COMPONENT_GOALS := lint format
5
+ NON_COMPONENT_GOALS := check-format format
6
6
7
7
.PHONY : $(GOALS ) $(COMPONENTS ) $(NON_COMPONENT_GOALS )
8
8
@@ -11,8 +11,11 @@ $(filter-out $(NON_COMPONENT_GOALS),$(GOALS)): $(COMPONENTS)
11
11
$(COMPONENTS ) :
12
12
$(MAKE ) -C $@ $(MAKECMDGOALS )
13
13
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' ;
15
17
prettier --check .
16
18
17
19
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' ;
18
21
prettier --write .
You can’t perform that action at this time.
0 commit comments