-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
7 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,4 @@ jobs: | |
with: | ||
sdk: 3.1.0 | ||
- run: make install | ||
- run: make | ||
- run: make check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,9 @@ | ||
default: check | ||
.PHONY: install check | ||
|
||
.PHONY: tasks install format test check | ||
|
||
tasks: ## Print available tasks | ||
@printf "\nUsage: make [target]\n\n" | ||
@grep -E '^[a-z][^:]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' | ||
|
||
install: ## Fetch dependencies for cyclic_dependency_checks | ||
install: | ||
dart pub get | ||
|
||
format: ## Format cyclic_dependency_checks code | ||
dart format lib --line-length 100 --set-exit-if-changed | ||
|
||
test: ## Run cyclic_dependency_checks tests | ||
dart scripts/generate_big_codebase.dart; dart test | ||
|
||
check: format test ## Check formatting, cycles and run tests | ||
check: | ||
dart format lib --line-length 100 --set-exit-if-changed; | ||
dart scripts/generate_big_codebase.dart; | ||
dart test; |