Skip to content

Commit

Permalink
ci: add cargo spellcheck check
Browse files Browse the repository at this point in the history
  • Loading branch information
gwen-lg committed Jul 31, 2024
1 parent 906f373 commit ce2914e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/code_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ jobs:
- name: Install cargo-readme
run: cargo install cargo-readme

- name: Install cargo-spellcheck
run: apt install libclang-dev && cargo install cargo-spellcheck

- name: Check if readme is up to date
id: cargo_readme
if: $${{ always() }}
Expand Down Expand Up @@ -72,6 +75,12 @@ jobs:
run: |
cargo doc
- name: Check for spelling errors in docs
id: cargo_spellcheck
if: $${{ always() }}
run: |
cargo spellcheck
- name: "Some checks failed"
if: ${{ failure() }}
run: |
Expand All @@ -84,6 +93,7 @@ jobs:
echo "|Cargo test|${{ steps.cargo_test.outcome }}|" >> $GITHUB_STEP_SUMMARY
echo "|Cargo fmt|${{ steps.cargo_fmt.outcome }}|" >> $GITHUB_STEP_SUMMARY
echo "|Cargo doc|${{ steps.cargo_doc.outcome }}|" >> $GITHUB_STEP_SUMMARY
echo "|Cargo spellcheck|${{ steps.cargo_spellcheck.outcome }}|" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "Please check the failed jobs and fix where needed." >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
Expand Down

0 comments on commit ce2914e

Please sign in to comment.