Skip to content

ci(lint): update golangci #51

ci(lint): update golangci

ci(lint): update golangci #51

Workflow file for this run

name: golangci-lint
on:
push:
tags:
- v*
branches:
- master
- main
pull_request:
permissions:
contents: read
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: go mod tidy
run: |
go mod tidy
if [ -n "$(git status --porcelain)" ]; then
echo "Run 'go mod tidy' and push it"
exit 1
fi
- name: golangci-lint
uses: golangci/golangci-lint-action@v8
with:
version: latest
- name: Run unit tests
run: go test -v ./...