ci: update cosign to v2.4.0 and add semantic commit validation (#69)

This commit is contained in:
Copilot
2025-10-04 15:08:41 +03:00
committed by GitHub
parent ce8958698f
commit d19c49bd48
10 changed files with 180 additions and 13 deletions

View File

@@ -93,6 +93,19 @@ if ! golangci-lint run; then
exit 1
fi
# Validate recent commit messages follow semantic commit format
log_info "Validating commit messages..."
if command -v npx &>/dev/null; then
# Check last 10 commits for semantic commit format
if ! npx --yes @commitlint/cli@19.6.1 --from HEAD~10 --to HEAD --verbose 2>/dev/null; then
log_warning "Some commit messages don't follow conventional commit format"
log_warning "Consider using semantic commit messages: feat:, fix:, docs:, etc."
fi
else
log_warning "npx not found. Skipping commit message validation."
log_warning "Install Node.js to enable commit message validation."
fi
# Build and test GoReleaser config
log_info "Testing GoReleaser configuration..."
if ! goreleaser check; then