mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-28 02:18:15 +00:00
fix: golangci-lint workflow (#5913)
* fix: golangci-lint workflow Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * cache Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * concurrency Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * concurrency Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
parent
28c0f8f56a
commit
21f1d2bfbe
2 changed files with 12 additions and 2 deletions
10
.github/workflows/tests.yaml
vendored
10
.github/workflows/tests.yaml
vendored
|
@ -1,4 +1,4 @@
|
|||
name: tests
|
||||
name: Tests
|
||||
|
||||
on:
|
||||
push:
|
||||
|
@ -10,6 +10,10 @@ on:
|
|||
- 'main'
|
||||
- 'release*'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
@ -23,11 +27,13 @@ jobs:
|
|||
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
||||
- name: Setup build env
|
||||
uses: ./.github/actions/setup-build-env
|
||||
with:
|
||||
build-cache-key: pre-checks
|
||||
- name: golangci-lint
|
||||
uses: golangci/golangci-lint-action@0ad9a0988b3973e851ab0a07adf248ec2e100376 # pin@v3
|
||||
with:
|
||||
version: v1.48
|
||||
|
||||
skip-cache: true
|
||||
- name: gofmt check
|
||||
run: |
|
||||
if [ "$(gofmt -s -l . | wc -l)" -ne 0 ]
|
||||
|
|
4
.github/workflows/verify-codegen.yaml
vendored
4
.github/workflows/verify-codegen.yaml
vendored
|
@ -10,6 +10,10 @@ on:
|
|||
- 'main'
|
||||
- 'release*'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue