-
Notifications
You must be signed in to change notification settings - Fork 109
41 lines (38 loc) · 1.04 KB
/
book.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# This workflow builds the book with documentation and runs book tests
name: Book
on:
push:
branches:
- main
- 'branch-*'
pull_request:
branches:
- main
- 'branch-*'
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 30
services:
scylladb:
image: scylladb/scylla
ports:
- 9042:9042
options: --health-cmd "cqlsh --debug scylladb" --health-interval 5s --health-retries 10
steps:
- uses: actions/checkout@v3
# Set to 1.81 because of regression in 1.82: https://github.com/rust-lang/rust/issues/131893
# TODO: change back to latest stable after this bug is fixed.
- name: Update rust toolchain
run: rustup default 1.81
- name: Install mdbook
run: cargo install mdbook --no-default-features
- name: Build the project
run: cargo build --verbose --examples
- name: Build the book
run: mdbook build docs
- name: Run book tests
run: mdbook test -L target/debug/deps docs