mirror of
https://github.com/google/comprehensive-rust.git
synced 2024-12-17 15:21:32 +02:00
a9ca0c860a
Like in #30, we should install a known-good version of `mdbook` and `mdbook-svgbob` when testing PRs.
27 lines
491 B
YAML
27 lines
491 B
YAML
name: Build and Test
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup Rust cache
|
|
uses: Swatinem/rust-cache@v2
|
|
|
|
- name: Install mdbook
|
|
run: cargo install mdbook --version 0.4.25
|
|
|
|
- name: Install mdbook-svgbob
|
|
run: cargo install mdbook-svgbob --version 0.2.1
|
|
|
|
- name: Test code snippets
|
|
run: mdbook test
|