FILE / ScuroNeko/Laniakea

.gitea/workflows/go-lint.yaml

Исходный файл и его история в репозитории.
FILE d3e4276b970e8eeb383355cb38c553deda190acf
Files
Laniakea/.gitea/workflows/go-lint.yaml
T
ScuroNeko 29b208eeec
Golang lint / lint (push) Successful in 11m32s
(new): v1.2 release
2026-08-19 14:58:25 +03:00

40 lines
859 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: Set up Go
uses: actions/setup-go@v6.5.0
with:
go-version: '1.26.6'
cache-dependency-path: go.sum
- name: Print toolchain version
run: go 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
uses: golangci/golangci-lint-action@v9.0.0
with:
version: v2.12.2