Skip to content

Commit

Permalink
ensure readme is always up to date in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburniske committed Apr 14, 2024
1 parent 1c45b29 commit b459583
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,22 @@ env:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Run clippy
run: cargo clippy --verbose -- -D warnings
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Run clippy
run: cargo clippy --verbose -- -D warnings
- name: Check README.md
run: |
set -e
cargo install cargo-rdme
cargo rdme --check
- name: Warning for README.md check failure
if: ${{ failure() }}
run: |
echo "README.md check failed. Please run 'cargo rdme' to update your README.md based on doc comments."
exit 1

0 comments on commit b459583

Please sign in to comment.