Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,15 @@ jobs:
with:
go-version: '1.25'

- name: Install govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest

- name: Unit tests
run: go test ./...

- name: Vulnerability scan
run: make vuln

- name: Build pipekit
run: make build

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,14 @@ jobs:
go-version: '1.25'
cache: true

- name: Install govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest

- name: Run tests
run: |
make build
go test ./... -v
make vuln

- name: Determine version
id: version
Expand Down
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: all build clean test test-integration lint tidy version release-check
.PHONY: all build clean test test-integration vuln lint tidy version release-check

GOOS_ARCH := linux/amd64 linux/arm64 linux/386 linux/arm darwin/amd64 darwin/arm64 windows/amd64 windows/arm64 windows/386
DIST_DIR := dist
Expand Down Expand Up @@ -50,6 +50,11 @@ test-integration: build
go test ./integration/... -v
@echo "Integration tests passed."

vuln:
@echo "Running govulncheck..."
govulncheck ./...
@echo "No called vulnerabilities found."

lint:
@echo "Running linter..."
golangci-lint run --timeout=5m
Expand All @@ -76,7 +81,7 @@ tag:
git tag -a $(VERSION) -m "Release $(VERSION)"
@echo "Tag created. Push with: git push origin $(VERSION)"

release-check: test-integration
release-check: test-integration vuln
@echo "Running tests..."
go test ./...
@echo "All tests passed. Ready for release $(VERSION)"
Expand Down
Loading