Skip to content

build(deps): bump k8s.io/apimachinery from 0.33.3 to 0.33.4 in /tests #294

build(deps): bump k8s.io/apimachinery from 0.33.3 to 0.33.4 in /tests

build(deps): bump k8s.io/apimachinery from 0.33.3 to 0.33.4 in /tests #294

Workflow file for this run

name: tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
~/go/bin
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Setup go
uses: actions/setup-go@v4
with:
go-version: 'stable'
check-latest: true
cache: true
- run: go version
- name: Verify dependencies
run: go mod verify
- name: Build
run: go build -v ./main.go
- name: Run go vet
run: go vet ./...
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Run staticcheck
run: staticcheck ./...
- name: Install vulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest
- name: Run vulncheck
run: govulncheck ./...
- name: Run go tests
run: go test -race -vet=off ./...
- name: Run e2e tests
run: |-
rm -rf ./tests/output/*
./tests/run.bash
if [[ -z "$(git status --porcelain)" ]]; then
echo "tests differ"
git diff
exit 1
fi