Skip to content

Commit

Permalink
Add a GitHub Actions workflow to check the book
Browse files Browse the repository at this point in the history
  • Loading branch information
ruuda committed May 22, 2024
1 parent 11dabf5 commit 63ad957
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Check

"on":
workflow_dispatch: {}
pull_request:
branches: ["*"]

jobs:
Build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install mdBook
run: |
curl -sSL https://github.com/rust-lang/mdBook/releases/download/$(cat mdbook-version)/mdbook-$(cat mdbook-version)-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin
- name: Build and test the book
run: |
bin/mdbook build
bin/mdbook test
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ details. To start a local preview server:

mdbook serve

The exact version of mdBook to use is listed in the `mdbook-version` file.

[mdBook]: https://rust-lang.github.io/mdBook/index.html

## Contributing
Expand Down
1 change: 1 addition & 0 deletions mdbook-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v0.4.37

0 comments on commit 63ad957

Please sign in to comment.