Skip to content

feat(metrics-operator): introduce range operators in AnalysisDefinition #5265

feat(metrics-operator): introduce range operators in AnalysisDefinition

feat(metrics-operator): introduce range operators in AnalysisDefinition #5265

Workflow file for this run

name: golangci-lint
on:
push:
branches:
- 'main'
- '[0-9]+.[1-9][0-9]*.x'
pull_request:
branches:
- 'main'
- '[0-9]+.[1-9][0-9]*.x'
paths:
- "**.go"
- "**/go.mod"
- "**/go.sum"
- ".golangi.yml"
- ".github/workflows/golangci-lint.yml"
- "!docs/**"
env:
# renovate: datasource=github-releases depName=golangci/golangci-lint
GOLANGCI_LINT_VERSION: "v1.54.2"
GO_VERSION: "~1.20"
jobs:
golangci-lint:
name: golangci-lint
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
config:
- name: "lifecycle-operator"
folder: "lifecycle-operator/"
- name: "metrics-operator"
folder: "metrics-operator/"
- name: "scheduler"
folder: "scheduler/"
- name: "certificate-operator"
folder: "klt-cert-manager/"
steps:
- name: Install monitor action
uses: GitHubSecurityLab/actions-permissions/monitor@v1
- name: Check out code
uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true
cache: true
cache-dependency-path: '${{ matrix.config.folder }}go.sum'
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
working-directory: ${{ matrix.config.folder }}
version: ${{ env.GOLANGCI_LINT_VERSION }}
args: --config ../.golangci.yml -v