Skip to content

Commit

Permalink
ci: add readme check in github code_check action
Browse files Browse the repository at this point in the history
  • Loading branch information
gwen-lg committed Jul 12, 2024
1 parent 6b82500 commit b29e2b3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/code_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ jobs:
- name: "Checkout"
uses: actions/checkout@v4

- name: Install cargo-readme
run: cargo install cargo-readme

- name: Check if readme is up to date
id: cargo_readme
if: $${{ always() }}
run: diff README.md <(cargo readme)

- name: "Cargo clippy"
id: cargo_clippy
if: $${{ always() }}
Expand Down Expand Up @@ -71,6 +79,7 @@ jobs:
echo "" >> $GITHUB_STEP_SUMMARY
echo "|Job|Status|" >> $GITHUB_STEP_SUMMARY
echo "|---|------|" >> $GITHUB_STEP_SUMMARY
echo "|Cargo readme|${{ steps.cargo_readme.outcome }}|" >> $GITHUB_STEP_SUMMARY
echo "|Cargo clippy|${{ steps.cargo_clippy.outcome }}|" >> $GITHUB_STEP_SUMMARY
echo "|Cargo test|${{ steps.cargo_test.outcome }}|" >> $GITHUB_STEP_SUMMARY
echo "|Cargo fmt|${{ steps.cargo_fmt.outcome }}|" >> $GITHUB_STEP_SUMMARY
Expand Down

0 comments on commit b29e2b3

Please sign in to comment.