Bump k8s.io/client-go from 0.31.1 to 0.31.2 (#310) #708
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
# Checks are executed on each push | |
name: Checks | |
on: ["push"] | |
jobs: | |
check-uncommitted-changes: | |
name: Check uncommitted changes | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Generate code | |
run: | | |
make all | |
# Fails if any generated files is different from what is committed | |
- name: Checks uncommitted changes to generated files | |
run: | | |
changes=$(git status --porcelain) | |
if [[ -z $changes ]]; | |
then | |
echo "No uncommitted changes to generated files" | |
else | |
echo "Error : there are uncommitted changes to generated files :" | |
echo "$changes" | |
exit 1 | |
fi | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
# Instead of using our own CI, we uses https://golangci-lint.run/ | |
# It combines 48 linters and execute them in parallel | |
- name: Lint with golangci-lint | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
version: v1.59.1 | |
args: --timeout 5m | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Execute tests | |
run: make test | |
shell: bash |