chore: improve makefile commands
This commit is contained in:
parent
9fd8ff60d9
commit
c182728810
2 changed files with 14 additions and 5 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -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:
|
||||
|
|
17
makefile
17
makefile
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue