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 - uses: denolib/setup-deno@v2
with: with:
deno-version: v1.x deno-version: v1.x
- run: make tests-cov - run: make ci
- name: Coveralls - name: Coveralls
uses: coverallsapp/github-action@master uses: coverallsapp/github-action@master
with: with:

View file

@ -1,16 +1,25 @@
DENO := deno 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 $(DENO) test --coverage=cov_profile *.test.ts
tests-cov: tests tests-cov: tests
$(DENO) coverage cov_profile --lcov > cov_profile/cov.lcov $(COV) --lcov > cov_profile/cov.lcov
cov:
$(COV)
fmt: fmt:
$(DENO) fmt *.ts $(FMT)
fmt-check: fmt-check:
$(DENO) fmt *.ts --check $(FMT) --check
clean: clean:
rm -rf cov_profile rm -rf cov_profile