From 45a2857eca93e1e2e4e4a85d8ac05b6f1505f109 Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Tue, 7 Apr 2026 18:35:59 +0200 Subject: [PATCH] ci: add compliance linting step to CI workflow Signed-off-by: Matthieu MOREL --- .github/workflows/ci.yml | 6 ++++++ compliance/remote_write_sender_test.go | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c15bfd73eb..b93daee401 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -273,6 +273,12 @@ jobs: with: args: --verbose --build-tags=dedupelabels version: ${{ steps.golangci-lint-version.outputs.version }} + - name: Lint in compliance + uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0 + with: + args: --verbose + working-directory: compliance + version: ${{ steps.golangci-lint-version.outputs.version }} - name: Lint in documentation/examples/remote_storage uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0 with: diff --git a/compliance/remote_write_sender_test.go b/compliance/remote_write_sender_test.go index 9822e2d3e6..a73eff4519 100644 --- a/compliance/remote_write_sender_test.go +++ b/compliance/remote_write_sender_test.go @@ -57,7 +57,7 @@ type internalPrometheus struct { agentMode bool } -func (p internalPrometheus) Name() string { return "internal-prometheus" } +func (internalPrometheus) Name() string { return "internal-prometheus" } // Run runs a cmd/prometheus main package as a test sender target, until ctx is done. func (p internalPrometheus) Run(ctx context.Context, opts sender.Options) error {