From c98ce0a56b023caedebd27ca19bfc955d6c682b5 Mon Sep 17 00:00:00 2001 From: Blaine Gardner Date: Thu, 1 Feb 2024 10:11:26 -0700 Subject: [PATCH] ci: check for gofmt usage in golangci-lint This is needed because not all contributors may be using gomft to format source code, and this could result in inconsistent usage over time. Signed-off-by: Blaine Gardner --- .github/workflows/golangci-lint.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/golangci-lint.yaml b/.github/workflows/golangci-lint.yaml index 706d95ba2ef3..73dab46efd95 100644 --- a/.github/workflows/golangci-lint.yaml +++ b/.github/workflows/golangci-lint.yaml @@ -40,7 +40,10 @@ jobs: # working-directory: somedir # Optional: golangci-lint command line arguments. - args: -E gosec --timeout=10m + args: -E gosec -E gofmt --timeout=10m + + # actions/setup-go already handles caching + skip-cache: true # Optional: show only new issues if it's a pull request. The default value is `false`. # only-new-issues: true