Merge pull request #306 from umangachapagain/fix-version-validation #1565
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint Codebase | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
golangci-lint: | |
name: Go ${{ matrix.go }} Lint | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: [ '1.23' ] | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v3 | |
- name: Setup go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.63.4 | |
kube-linter: | |
name: Kube YAML | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v3 | |
- name: Lint | |
uses: stackrox/[email protected] | |
with: | |
directory: config/ | |
config: .kube-linter-config.yaml |