diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3f2de05b7..7b275f5ae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/Makefile b/Makefile index 9cc174863..a0ca35b73 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/contrib/scripts/check-book.sh b/contrib/scripts/check-book.sh new file mode 100644 index 000000000..aebb85dd6 --- /dev/null +++ b/contrib/scripts/check-book.sh @@ -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 \ No newline at end of file