mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-05 04:16:15 +02:00
ci: add compliance linting step to CI workflow
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
parent
9a3ac8910b
commit
45a2857eca
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -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:
|
||||
|
||||
@ -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 <REPO>cmd/prometheus main package as a test sender target, until ctx is done.
|
||||
func (p internalPrometheus) Run(ctx context.Context, opts sender.Options) error {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user