(new): tgfmt package
Golang lint / lint (pull_request) Successful in 7m10s
Golang lint / lint (push) Successful in 7m13s

(fix): formatting helpers
(ci/cd): go checks
(tests): tgfmt coverage
This commit is contained in:
2026-05-04 11:20:09 +03:00
parent 6595265cb3
commit 7205b21fa2
18 changed files with 532 additions and 155 deletions
+11 -2
View File
@@ -1,6 +1,6 @@
name: Golang lint
run-name: Linting code
on: [push]
on: [push, pull_request]
jobs:
lint:
@@ -10,10 +10,19 @@ jobs:
uses: actions/checkout@v6
- name: Verify formatting
run: test -z "$(gofmt -l .)"
run: |
files="$(gofmt -l .)"
if [ -n "$files" ]; then
echo "These files are not gofmt-formatted:"
echo "$files"
exit 1
fi
- name: Run go test
run: go test ./...
- name: Run go vet
run: go vet ./...
- name: Run golangci-lint
run: golangci-lint run