fix: pod health #164
Workflow file for this run
This file contains 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 | |
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 |