Add build tags to linter and update golangci-lint action to v6

This commit is contained in:
christophe-duc 2026-01-07 16:32:34 -04:00
parent 4554b5ce13
commit 71c53a5c5e

View file

@ -136,15 +136,13 @@ jobs:
restore-keys: |
${{runner.os}}-go-
- name: Lint
uses: golangci/golangci-lint-action@v3.1.0
uses: golangci/golangci-lint-action@v6
with:
version: latest
args: --build-tags=containers_image_openpgp,exclude_graphdriver_btrfs
- name: Format code
run: |
if [ $(find . ! -path "./vendor/*" -name "*.go" -exec gofmt -s -d {} \;|wc -l) -gt 0 ]; then
find . ! -path "./vendor/*" -name "*.go" -exec gofmt -s -d {} \;
exit 1
fi
- name: errors
run: golangci-lint run
if: ${{ failure() }}