1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-03-20 14:31:15 +02:00

Merge pull request #31 from google/mdbook-test

Add a build workflow to test PRs
This commit is contained in:
Martin Geisler 2022-12-22 19:56:54 +01:00 committed by GitHub
commit b29dd1ae09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

26
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,26 @@
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
- name: Install mdbook-svgbob
run: cargo install mdbook-svgbob
- name: Test code snippets
run: mdbook test