Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contrib: add scripts/check-book.sh #249

Merged
merged 1 commit into from
Jan 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,23 @@ jobs:
- name: Check
run: make check-docs

check-book:
name: Check book
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-book-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
- name: Check
run: make check-book

build-no-std:
name: Build no_std
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ check-fmt:
check-bindings:
@bash contrib/scripts/check-bindings.sh

check-book:
@bash contrib/scripts/check-book.sh

check-crates:
@bash contrib/scripts/check-crates.sh

Expand Down
8 changes: 8 additions & 0 deletions contrib/scripts/check-book.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

# Needed to exit from script on error
set -e

cargo install just --version 1.23.0

cd book && just test