feat: test gitea actions with a real build!
All checks were successful
Build and test / Build (push) Successful in 2m10s

This commit is contained in:
Muyao CHEN
2024-10-08 23:22:00 +02:00
parent cc505e5a74
commit 8e73dc5f0b
5 changed files with 117 additions and 5 deletions

22
web/Makefile Normal file
View File

@ -0,0 +1,22 @@
.PHONY: all
all: add-copyright format lint build test
.PHONY: build
build:
@npm run build
.PHONY: format
format: # format code.
@npm run format
.PHONY: lint
lint:
@npm run lint
.PHONY: test
test:
@npm run test:unit run
.PHONY: add-copyright
add-copyright: # add license to file headers.
@addlicense -v -f ../LICENSE ./src --skip-files=database.yml