Skip to content
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

ci: Add version-check job to check Cargo.toml on release #1102

Merged
merged 1 commit into from
Feb 21, 2025

Conversation

viccuad
Copy link
Member

@viccuad viccuad commented Feb 21, 2025

Description

On release (when the CI workflow is triggered by a tag), check that the Cargo.toml version matches the tag.

This prevents releasing badly tagged or version-annotated images.

This is lifted from kwctl's CI.

Test

Tested locally.

Additional Information

Tradeoff

Potential improvement

On release (when the CI workflow is triggered by a tag),
check that the Cargo.toml `version` matches the tag.

This prevents releasing badly tagged or version-annotated images.

This is lifted from kwctl's CI.

Signed-off-by: Víctor Cuadrado Juan <vcuadradojuan@suse.de>
@viccuad viccuad requested a review from a team as a code owner February 21, 2025 11:13
Copy link

codecov bot commented Feb 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 57.02%. Comparing base (80ebc71) to head (3018330).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1102      +/-   ##
==========================================
- Coverage   57.52%   57.02%   -0.51%     
==========================================
  Files          18       18              
  Lines        1189     1189              
==========================================
- Hits          684      678       -6     
- Misses        505      511       +6     
Flag Coverage Δ
integration-tests 51.82% <ø> (-0.53%) ⬇️
unit-tests 33.42% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@viccuad viccuad merged commit d241c9e into kubewarden:main Feb 21, 2025
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants