Skip to content

Commit

Permalink
fix: checkmate behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
SRetip committed Sep 13, 2024
1 parent 256dd38 commit 4285767
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 5 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/standard_rust_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,32 @@ jobs :
- name: Build module
run: cd ${{ steps.rootpath.outputs.path }} && cargo build && cd -
- name: Audit the modules
id: audit
run: make audit
continue-on-error: true
- name: Generate documentation for the modules
id: documentation
run: make doc open=no manifest_path=${{ inputs.manifest_path }}
continue-on-error: true
- name: Lint the modules
id: lint
run: make lint manifest_path=${{ inputs.manifest_path }} warnings=no
continue-on-error: true
- name: Check the modules
id: check
run: make check manifest_path=${{ inputs.manifest_path }}
continue-on-error: true
- name: Check the modules dependencies
id: udeps
run: cargo +nightly udeps --all-targets --manifest-path ${{ inputs.manifest_path }}
# 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
continue-on-error: true
# Added IDs for each step in the test job: This allows referencing the result of each step later.
#
# "Check for errors" step: Now checks the outcome status for each step.
# If any of them have a value of 'failure', this step will fail the job by returning exit 1.
- name: Check for errors
if: steps.audit.outcome != 'success' || steps.documentation.outcome != 'success' || steps.lint.outcome != 'success' || steps.check.outcome != 'success' || steps.udeps.outcome != 'success'
run: exit 1

# release:
# if: contains( inputs.commit_message, '+test' ) || contains( inputs.commit_message, 'merge' )
Expand Down Expand Up @@ -127,7 +138,7 @@ jobs :

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:
needs :
- checkmate
if : contains( inputs.commit_message, '+test' ) || inputs.commiter_username == 'web-flow' || startsWith( inputs.commit_message, 'merge' )
concurrency :
Expand Down
15 changes: 13 additions & 2 deletions module/move/willbe/template/workflow/standard_rust_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,32 @@ jobs :
- name: Build module
run: cd ${{ steps.rootpath.outputs.path }} && cargo build && cd -
- name: Audit the modules
id: audit
run: make audit
continue-on-error: true
- name: Generate documentation for the modules
id: documentation
run: make doc open=no manifest_path=${{ inputs.manifest_path }}
continue-on-error: true
- name: Lint the modules
id: lint
run: make lint manifest_path=${{ inputs.manifest_path }} warnings=no
continue-on-error: true
- name: Check the modules
id: check
run: make check manifest_path=${{ inputs.manifest_path }}
continue-on-error: true
- name: Check the modules dependencies
id: udeps
run: cargo +nightly udeps --all-targets --manifest-path ${{ inputs.manifest_path }}
# 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
continue-on-error: true
# Added IDs for each step in the test job: This allows referencing the result of each step later.
#
# "Check for errors" step: Now checks the outcome status for each step.
# If any of them have a value of 'failure', this step will fail the job by returning exit 1.
- name: Check for errors
if: steps.audit.outcome != 'success' || steps.documentation.outcome != 'success' || steps.lint.outcome != 'success' || steps.check.outcome != 'success' || steps.udeps.outcome != 'success'
run: exit 1

# release:
# if: contains( inputs.commit_message, '+test' ) || contains( inputs.commit_message, 'merge' )
Expand Down

0 comments on commit 4285767

Please sign in to comment.