Conditions for steps in a job

Hi , I could find any example of the usage I’m looking for wanted to ask what are my options?

I have a job
Lets say it looks like this:

jobs:
job1:
- step1
- step2
- step3

I want to a condition in step1 , if it succeeded it will continue to step2 and step3
But if it failed I want it mark job as success and continue from next job of the workflow , without executing step2 and step3 .

What are my options ?
Thanks.

There is no way to mark a job on success if it fails in any meaningful way.

However, you can use the when modifier to run specific jobs on success or failure. https://circleci.com/docs/2.0/configuration-reference/#the-when-attribute