mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 16:06:56 +00:00
41 lines
974 B
YAML
41 lines
974 B
YAML
name: Lint
|
|
|
|
permissions: {}
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- '*'
|
|
pull_request:
|
|
branches:
|
|
- 'main'
|
|
- 'release*'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
tests:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v3.5.0
|
|
- name: Setup build env
|
|
uses: ./.github/actions/setup-build-env
|
|
timeout-minutes: 10
|
|
with:
|
|
build-cache-key: lint
|
|
- name: golangci-lint
|
|
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3.7.0
|
|
with:
|
|
version: v1.54.2
|
|
skip-cache: true
|
|
- name: go fmt check
|
|
run: make fmt-check
|
|
- name: goimports check
|
|
run: make imports-check
|
|
- name: Checking unused pkgs using go mod tidy
|
|
run: make unused-package-check
|
|
- name: Go vet
|
|
run: make vet
|