chore: improve makefile commands

This commit is contained in:
Dmitriy Pleshevskiy 2021-08-21 08:53:36 +03:00
parent 9fd8ff60d9
commit c182728810
2 changed files with 14 additions and 5 deletions

View file

@ -13,7 +13,7 @@ jobs:
- uses: denolib/setup-deno@v2
with:
deno-version: v1.x
- run: make tests-cov
- run: make ci
- name: Coveralls
uses: coverallsapp/github-action@master
with:

View file

@ -1,16 +1,25 @@
DENO := deno
COV := $(DENO) coverage cov_profile
FMT := $(DENO) fmt *.ts examples/*.ts
tests: clean fmt-check
dev: fmt tests cov
ci: fmt-check tests-cov
tests: clean
$(DENO) test --coverage=cov_profile *.test.ts
tests-cov: tests
$(DENO) coverage cov_profile --lcov > cov_profile/cov.lcov
$(COV) --lcov > cov_profile/cov.lcov
cov:
$(COV)
fmt:
$(DENO) fmt *.ts
$(FMT)
fmt-check:
$(DENO) fmt *.ts --check
$(FMT) --check
clean:
rm -rf cov_profile