decouple lint and test
This commit is contained in:
parent
c09138b890
commit
cb697b9b08
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
@ -15,4 +15,4 @@ jobs:
|
|||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: ${{matrix.node}}
|
node-version: ${{matrix.node}}
|
||||||
- run: make test
|
- run: make lint test
|
||||||
|
12
Makefile
12
Makefile
@ -13,11 +13,11 @@ lint: node_modules
|
|||||||
npx eslint --color .
|
npx eslint --color .
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test: node_modules lint build
|
test: node_modules build
|
||||||
npx vitest
|
npx vitest
|
||||||
|
|
||||||
.PHONY: test-update
|
.PHONY: test-update
|
||||||
test-update: node_modules lint build
|
test-update: node_modules build
|
||||||
npx vitest -u
|
npx vitest -u
|
||||||
|
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
@ -35,22 +35,22 @@ publish: node_modules
|
|||||||
|
|
||||||
.PHONY: update
|
.PHONY: update
|
||||||
update: node_modules build
|
update: node_modules build
|
||||||
node $(DST) -cu
|
node $(DST) -u
|
||||||
rm -rf node_modules package-lock.json
|
rm -rf node_modules package-lock.json
|
||||||
npm install
|
npm install
|
||||||
@touch node_modules
|
@touch node_modules
|
||||||
|
|
||||||
.PHONY: patch
|
.PHONY: patch
|
||||||
patch: node_modules test
|
patch: node_modules lint test
|
||||||
npx versions -c 'make --no-print-directory build' patch package.json package-lock.json
|
npx versions -c 'make --no-print-directory build' patch package.json package-lock.json
|
||||||
@$(MAKE) --no-print-directory publish
|
@$(MAKE) --no-print-directory publish
|
||||||
|
|
||||||
.PHONY: minor
|
.PHONY: minor
|
||||||
minor: node_modules test
|
minor: node_modules lint test
|
||||||
npx versions -c 'make --no-print-directory build' minor package.json package-lock.json
|
npx versions -c 'make --no-print-directory build' minor package.json package-lock.json
|
||||||
@$(MAKE) --no-print-directory publish
|
@$(MAKE) --no-print-directory publish
|
||||||
|
|
||||||
.PHONY: major
|
.PHONY: major
|
||||||
major: node_modules test
|
major: node_modules lint test
|
||||||
npx versions -c 'make --no-print-directory build' major package.json package-lock.json
|
npx versions -c 'make --no-print-directory build' major package.json package-lock.json
|
||||||
@$(MAKE) --no-print-directory publish
|
@$(MAKE) --no-print-directory publish
|
||||||
|
Loading…
Reference in New Issue
Block a user