From 11789caee28b98236328fbe7f4c04d04c1004783 Mon Sep 17 00:00:00 2001 From: Martin Geisler Date: Thu, 22 Dec 2022 15:09:57 +0100 Subject: [PATCH] Add a build workflow to test PRs We will expand this to build/test other things in the future. --- .github/workflows/build.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..dd4195a4 --- /dev/null +++ b/.github/workflows/build.yml @@ -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