1
0
Fork 0
mirror of https://github.com/imjasonh/client-go2 synced 2026-07-08 09:05:38 +00:00
Signed-off-by: Jason Hall <jason@chainguard.dev>
This commit is contained in:
Jason Hall 2025-07-27 16:35:38 -04:00
parent fb8305a316
commit d2b0d467e5
Failed to extract signature
4 changed files with 6 additions and 36 deletions

View file

@ -12,38 +12,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 'stable'
- run: go build ./...
- run: go vet ./...
- run: |
if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then
echo "Code is not formatted. Run 'gofmt -s -w .'"
gofmt -s -d .
exit 1
fi
- run: |
go mod tidy
git diff --exit-code go.mod go.sum
- name: Run unit tests
run: go test ./... -v -race
- uses: chainguard-dev/actions/setup-kind@main
with:
k8s-version: v1.33.x
- run: |
kubectl cluster-info
kubectl get nodes
- name: Run e2e tests
run: go test ./... -v -tags=e2e
- name: Run example
run: go run ./main.go
- run: make all