Skip to content

Commit

Permalink
Add build scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
dam5s committed Jul 28, 2023
1 parent fa41c2c commit 899b0ab
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build.yml
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
17 changes: 17 additions & 0 deletions Makefile
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

0 comments on commit 899b0ab

Please sign in to comment.