Bump k8s.io/api from 0.31.0 to 0.31.3 #264
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: Automatic Pull Request test | |
on: | |
pull_request: | |
branches: | |
- "main" | |
permissions: | |
contents: read | |
jobs: | |
unit-test: | |
name: Unit test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout latest commit in the PR | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: go.mod | |
check-latest: true | |
cache-dependency-path: "**/go.sum" | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/go/bin | |
- name: Set up tools | |
run: | | |
go install golang.org/x/lint/golint@latest | |
go install golang.org/x/tools/cmd/goimports@latest | |
- name: Run code checks | |
run: | | |
make check-format | |
make vet | |
- name: Build | |
run: make build | |
- name: Unit test | |
run: make test | |
- name: Upload code coverage | |
uses: codecov/codecov-action@v3 | |
docker-build: | |
name: Build Docker images | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout latest commit in the PR | |
uses: actions/checkout@v3 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Build Network Policy Controller images | |
run: make docker-buildx | |
deprecated-apigroups: | |
name: Detect deprecated apiGroups | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
version=$(curl -sL https://api.github.com/repos/FairwindsOps/pluto/releases/latest | jq -r ".tag_name") | |
number=${version:1} | |
wget https://github.com/FairwindsOps/pluto/releases/download/${version}/pluto_${number}_linux_amd64.tar.gz | |
sudo tar -C /usr/local -xzf pluto_${number}_linux_amd64.tar.gz | |
- run: | | |
/usr/local/pluto detect-files -d . | |
vuln_check: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set variables | |
run: | | |
VER=$(cat .go-version) | |
echo "VERSION=$VER" >> $GITHUB_ENV | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ env.VERSION }} | |
check-latest: true | |
cache-dependency-path: "**/go.sum" | |
- name: Install `govulncheck` | |
run: go install golang.org/x/vuln/cmd/govulncheck@latest | |
- name: Run `govulncheck` | |
run: ~/go/bin/govulncheck ./... |