Skip to content

Replace yamllint action with make targets, enable kyaml mode #2192

Replace yamllint action with make targets, enable kyaml mode

Replace yamllint action with make targets, enable kyaml mode #2192

Workflow file for this run

name: Lint
on: [ pull_request ]
permissions:
contents: read
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: golangci-lint
run: go tool golangci-lint run --timeout 10m
lint-api:
name: lint-api
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: build kube-api-linter
run: go tool golangci-lint custom
- name: kube-api-linter
run: ./bin/golangci-lint-kube-api-linter run --timeout 10m --config .golangci-kal.yml
yamllint:
name: yamllint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install yamllint
run: |
sudo apt-get update
sudo apt-get install -y yamllint
- run: make yamllint
actionlint:
name: actionlint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: raven-actions/actionlint@205b530c5d9fa8f44ae9ed59f341a0db994aa6f8 # v2.1.2