Skip to content

Commit

Permalink
READY: add fail fast to checkmate stage of CI/CD (#1442)
Browse files Browse the repository at this point in the history
* feat: add fail fast to `checkmate` stage of CI/CD
  • Loading branch information
SRetip authored Aug 30, 2024
1 parent 74ae64d commit c903936
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/standard_rust_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ jobs :
continue-on-error: true
- name: Check the modules dependencies
run: cargo +nightly udeps --all-targets --manifest-path ${{ inputs.manifest_path }}
continue-on-error: true
# This part means that all previous steps will be executed and workflow will not stop if they fail, but not this one.
continue-on-error: false

# release:
# if: contains( inputs.commit_message, '+test' ) || contains( inputs.commit_message, 'merge' )
Expand Down Expand Up @@ -125,6 +126,9 @@ jobs :
# run: cargo miri test --manifest-path ${{ inputs.manifest_path }}

will_test :
# This section ensures that `job` `will_test` will only be executed after `checkmate` and if `checkmate` fails, no tests will be run.
needs:
- checkmate
if : contains( inputs.commit_message, '+test' ) || inputs.commiter_username == 'web-flow' || startsWith( inputs.commit_message, 'merge' )
concurrency :
group : standard_rust_push_${{ inputs.module_name }}_${{ github.ref }}_${{ matrix.os }}
Expand Down
6 changes: 5 additions & 1 deletion module/move/willbe/template/workflow/standard_rust_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ jobs :
continue-on-error: true
- name: Check the modules dependencies
run: cargo +nightly udeps --all-targets --manifest-path ${{ inputs.manifest_path }}
continue-on-error: true
# This part means that all previous steps will be executed and workflow will not stop if they fail, but not this one.
continue-on-error: false

# release:
# if: contains( inputs.commit_message, '+test' ) || contains( inputs.commit_message, 'merge' )
Expand Down Expand Up @@ -125,6 +126,9 @@ jobs :
# run: cargo miri test --manifest-path ${{ inputs.manifest_path }}

will_test :
# This section ensures that `job` `will_test` will only be executed after `checkmate` and if `checkmate` fails, no tests will be run.
needs :
- checkmate
if : contains( inputs.commit_message, '+test' ) || inputs.commiter_username == 'web-flow' || startsWith( inputs.commit_message, 'merge' )
concurrency :
group : standard_rust_push_${{ inputs.module_name }}_${{ github.ref }}_${{ matrix.os }}
Expand Down

0 comments on commit c903936

Please sign in to comment.