Skip to content

feat: add kube-api-linter checker #7

feat: add kube-api-linter checker

feat: add kube-api-linter checker #7

Workflow file for this run

name: Presubmit Tests
on:
pull_request:
branches:
- main
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.26'
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Cache golangci-lint
id: cache-kal
uses: actions/cache@v4
with:
path: dev/tools/tmp/bin/golangci-kube-api-linter
key: ${{ runner.os }}-golangci-kube-api-linter-${{ hashFiles('dev/tools/.custom-gcl.yaml', 'dev/tools/go.mod') }}
- name: Build golangci-kube-api-linter (if not cached)
run: ./dev/tools/build-kal
if: steps.cache-kal.outputs.cache-hit != 'true'
- name: Run lint-go
run: make lint-go
- name: Run lint-api
run: make lint-api