From c182728810e9fabcb6bb2b3091bbeabf439bef2d Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Sat, 21 Aug 2021 08:53:36 +0300 Subject: [PATCH] chore: improve makefile commands --- .github/workflows/ci.yml | 2 +- makefile | 17 +++++++++++++---- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2ffafa8..d30f9a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/makefile b/makefile index fd36b15..66de737 100644 --- a/makefile +++ b/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