Skip to content

chore: downgrade k8s dep #148

chore: downgrade k8s dep

chore: downgrade k8s dep #148

Workflow file for this run

name: Lint
on:
pull_request:
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.22.x
- name: Install Golines and GoFumpt
run: |
go install github.com/segmentio/golines@latest
go install mvdan.cc/gofumpt@latest
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
args: --timeout 5m0s --verbose
- name: Verify formatting
run: |
make lint
if [[ -n "$(git status --porcelain | grep -v 'argo-cd\|gitops-engine')" ]]; then
echo "The following files have formatting issues:"
git status --porcelain
echo "Please run 'make lint' locally and commit the changes"
exit 1
fi