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

Split workflow in multiple jobs #140

Closed
wants to merge 1 commit into from
Closed

Conversation

sblaisot
Copy link

@sblaisot sblaisot commented Oct 1, 2024

Description

With continue-on-error on steps, when that step fail, it marked as succeeded.

However, having continue-on-error at the job level marks the job as failed but continue to the next job.

This PR split the workflow in two jobs to be able to have the job marked as failed when a step fails but continue to the next job.

Copy link
Member

@KwikKill KwikKill left a comment

Choose a reason for hiding this comment

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

continue-on-error is not required here.
Otherwise, this was tested and look's good.

runs-on: ubuntu-latest
# Continue to the next step even if this fails
continue-on-error: true
Copy link
Member

@KwikKill KwikKill Oct 2, 2024

Choose a reason for hiding this comment

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

The pipeline need to be able to fail and every job will still be completed even without continue-on-error.
For reference, this is the difference between with and without it :
image
Both pipelines are supposed to fail when certain steps have failed, but with continue-on-error, the pipeline doesn't.

Typecheck:
runs-on: ubuntu-latest
# Continue to the next step even if this fails
continue-on-error: true
Copy link
Member

Choose a reason for hiding this comment

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

Same here.

@KwikKill
Copy link
Member

KwikKill commented Oct 4, 2024

This modification was included in #142 as a larger refacto was made.

@KwikKill KwikKill closed this Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants