chore: upgrade golangci-lint v1.63.4 #942
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: build-and-test | |
on: | |
push: | |
branches: | |
- "*" | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
cache: true | |
go-version: 1.23.4 | |
- name: Check project dependencies | |
run: | | |
rm go.sum | |
go mod tidy | |
git -c color.ui=always diff --exit-code go.mod go.sum | |
- name: Test | |
run: go test -race ./... -v -coverprofile=coverage.out | |
env: | |
GOEXPERIMENT: nocoverageredesign | |
- name: Set up kubectl | |
uses: azure/setup-kubectl@v4 | |
with: | |
version: v1.31.0 | |
- name: Generate Install Manifests | |
run: | | |
hack/generate-manifests.sh | |
git -c color.ui=always diff --exit-code deploy/ | |
- name: Upload Coverage Report | |
uses: codecov/codecov-action@v5 | |
with: | |
file: ./coverage.out | |
flags: unittests | |
name: codecov-umbrella | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |