-
Notifications
You must be signed in to change notification settings - Fork 1
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
34 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Build | ||
on: push | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: 'Checkout code' | ||
uses: actions/checkout@v3 | ||
|
||
- name: 'Tests' | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: '3.x' | ||
channel: 'stable' | ||
- run: flutter pub get | ||
- 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
default: check | ||
|
||
.PHONY: tasks | ||
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}' | ||
|
||
.PHONY: format | ||
format: ## Format code | ||
dart format lib --line-length 100 --set-exit-if-changed | ||
|
||
.PHONY: test | ||
test: ## Run tests | ||
flutter test | ||
|
||
.PHONY: check | ||
check: format test ## Check formatting and run tests |