Skip to content

Turn examples into crates #423

Turn examples into crates

Turn examples into crates #423

Workflow file for this run

name: argmin book
on:
pull_request:
push:
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
book:
name: Book test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Cache dependencies
id: cache-dependencies
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Generate harness
working-directory: ./media/book/tests
run: ./generate_book_tests.sh
- name: Test code samples
working-directory: ./media/book/tests
run: cargo test