Skip to content

ci: fail on issues found in static-checks #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ron96G
Copy link
Member

@ron96G ron96G commented May 22, 2025

No description provided.

@ron96G ron96G requested review from Copilot and BjoernKarma May 22, 2025 08:37
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the CI workflow to fail when static-check issues are detected and adds a conditional execution for the release process.

  • Removed the argument "--issues-exit-code=0" from the Go linter step, ensuring that the CI now fails on static-check issues.
  • Added an ID for the semantic release step and introduced a conditional for running GoReleaser based on the outcome of semantic release.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/reusable-go-ci.yaml Updated lint command arguments to fail on detected issues by removing '--issues-exit-code=0'.
.github/workflows/release.yaml Added semantic_release step identifier and a conditional for running GoReleaser based on release outcome.
Comments suppressed due to low confidence (1)

.github/workflows/release.yaml:58

  • Ensure that the 'semantic_release' output always returns the string 'true' when a new release is published, so that the conditional execution for GoReleaser behaves as expected.
if: steps.semantic_release.outputs.new_release_published == 'true'

@ron96G ron96G requested review from ellevaoche and stefan-ctrl May 22, 2025 08:38
Copy link

TestsPassed ❌️SkippedFailed
Test Report (common)0 ran0 passed0 skipped0 failed

Copy link

Coverage for common

Download the latest HTML coverage report for common here.

Copy link

TestsPassed ❌️SkippedFailed
Test Report (common-server)0 ran0 passed0 skipped0 failed

Copy link

Coverage for common-server

Download the latest HTML coverage report for common-server here.

Copy link

TestsPassed ❌️SkippedFailed
Test Report (secret-manager)0 ran0 passed0 skipped0 failed

Copy link

Coverage for secret-manager

Download the latest HTML coverage report for secret-manager here.

Copy link

TestsPassed ❌️SkippedFailed
Test Report (approval)0 ran0 passed0 skipped0 failed

Copy link

Coverage for approval

Download the latest HTML coverage report for approval here.

@ron96G ron96G added the github_actions Pull requests that update GitHub Actions code label May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
github_actions Pull requests that update GitHub Actions code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant