Bump k8s.io/client-go from 0.28.1 to 0.28.2 #440
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: Checks | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
Checks: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09 # v2.5.1 | |
with: | |
egress-policy: audit | |
disable-telemetry: true | |
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 | |
- name: Setup Go environment | |
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 | |
with: | |
cache: true | |
go-version-file: go.mod | |
cache-dependency-path: '**/go.sum' | |
- name: Test | |
run: make test | |
- name: Upload unit test coverage report | |
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4 | |
with: | |
files: ./cover.out | |
flags: controller | |
- name: Upload api test coverage report | |
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4 | |
with: | |
files: ./api_cover.out | |
flags: api | |
- name: Check for uncommitted changes | |
run: | | |
if ! git diff --exit-code -s; then | |
for f in $(git diff --exit-code --name-only); do | |
echo "::error file=$f,line=1,col=1,endColumn=1::File was modified in build" | |
done | |
exit 1 | |
fi |