ci: move checks to CI, rm Makefile
This commit is contained in:
5
.github/workflows/test.yaml
vendored
5
.github/workflows/test.yaml
vendored
@ -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 .
|
||||
|
26
Makefile
26
Makefile
@ -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)')"
|
Reference in New Issue
Block a user