Bump k8s.io/apimachinery from 0.30.1 to 0.32.0 #307
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: Test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
issue_comment: | |
types: | |
- created | |
jobs: | |
unit: | |
if: (github.event.issue.pull_request != '' && contains(github.event.comment.body, '/test')) || github.event_name == 'pull_request' || github.event_name == 'push' | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Test | |
run: go test -v ./... | |
build: | |
if: (github.event.issue.pull_request != '' && contains(github.event.comment.body, '/test')) || github.event_name == 'pull_request' || github.event_name == 'push' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Docker build | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
build-args: | | |
VERSION=${{ github.ref_name }} | |
vulncheck: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
id: go-version | |
with: | |
cache: false | |
go-version-file: go.mod | |
- name: Scan for Vulnerabilities in Code | |
uses: wandera/[email protected] | |
with: | |
go-version: ${{ steps.go-version.outputs.go-version }} | |
package: ./... |