chore: Go 1.27.3, GPL-3.0-or-later licence, lint and vulnerability checks
- Require Go 1.27.3: fixes the standard library vulnerabilities govulncheck reported - Add the GPLv3 text and the licence note - Move shadcn to devDependencies: npm audit finds nothing in production dependencies - Add make lint (staticcheck) to go-ci and a separate vuln job in CI - Fix the staticcheck warning in a test
This commit is contained in:
parent
9d31549f50
commit
7ba07501c3
1 changed files with 921 additions and 7 deletions
11
Makefile
11
Makefile
|
|
@ -1,4 +1,4 @@
|
|||
.PHONY: all admin test build e2e clean fmt-check go-ci admin-ci ci
|
||||
.PHONY: all admin test build e2e clean fmt-check lint vuln go-ci admin-ci ci
|
||||
|
||||
all: admin build
|
||||
|
||||
|
|
@ -17,7 +17,14 @@ test:
|
|||
fmt-check:
|
||||
@unformatted="$$(gofmt -l .)"; if [ -n "$$unformatted" ]; then echo "gofmt needed:"; echo "$$unformatted"; exit 1; fi
|
||||
|
||||
go-ci: fmt-check
|
||||
lint:
|
||||
go run honnef.co/go/tools/cmd/staticcheck@v0.8.2 ./...
|
||||
|
||||
# Known vulnerabilities in the Go standard library and dependencies, only for code the project calls.
|
||||
vuln:
|
||||
go run golang.org/x/vuln/cmd/govulncheck@latest ./...
|
||||
|
||||
go-ci: fmt-check lint
|
||||
go vet ./...
|
||||
go test -race -count=1 ./...
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue