Skip to content

Commit

Permalink
contrib: add scripts/check-book.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
yukibtc committed Jan 15, 2024
1 parent fadaa46 commit d38793a
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
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

0 comments on commit d38793a

Please sign in to comment.