ci: move checks to CI, rm Makefile

This commit is contained in:
ge
2025-05-29 22:42:26 +03:00
parent cf39b623ae
commit 8851e56a8b
2 changed files with 4 additions and 27 deletions

View File

@ -1,4 +1,4 @@
name: Tests
name: Lint and test
on:
push:
branches: [ "master" ]
@ -21,4 +21,7 @@ jobs:
- name: Run tests
run: |
v fmt -verify .
v vet -v -W -I -F -r .
v missdoc -r --verify .
v -stats test .

View File

@ -1,26 +0,0 @@
SRC_DIR ?= src
DOC_DIR ?= doc
TESTS_DIR ?= tests
all: fmt vet missdoc test
fmt:
v fmt -verify -diff $(SRC_DIR)
vet:
v vet -W -r -I -F $(SRC_DIR)
missdoc:
v missdoc -r --verify $(SRC_DIR)
test:
v test .
doc:
v doc -f html -m . -o $(DOC_DIR)
clean:
rm -r $(DOC_DIR) || true
serve: clean doc
v -e "import net.http.file; file.serve(folder: '$(DOC_DIR)')"