FILE / ScuroNeko/Laniakea

.gitea/workflows/go-lint.yaml

Исходный файл и его история в репозитории.
FILE bf323f92ff7dbedc73220553c6775828ebeacc23
Files
Laniakea/.gitea/workflows/go-lint.yaml
T
ScuroNeko bf323f92ff
Golang lint / lint (push) Successful in 4m40s
(fix): workflow go 1.27
2026-09-08 23:36:31 +03:00

34 lines
696 B
YAML

name: Golang lint
run-name: Linting code
on: [push, pull_request]
jobs:
lint:
runs-on: go-latest
steps:
- name: Checkout repository code
uses: actions/checkout@v6
- name: Print toolchain version
run: |
go version
golangci-lint version
- name: Verify formatting
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 .