1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-04-24 16:42:36 +02:00

Run cargo test on pull requests

This uses the `Cargo.toml` file in the repository to test the provided
solutions.
This commit is contained in:
Martin Geisler 2023-01-03 14:39:24 +01:00
parent 2a92487bbd
commit 1bfe3cf7a2

View File

@ -6,8 +6,11 @@ on:
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
build:
mdbook:
runs-on: ubuntu-latest
steps:
- name: Checkout
@ -24,3 +27,15 @@ jobs:
- name: Test code snippets
run: mdbook test
cargo:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Rust cache
uses: Swatinem/rust-cache@v2
- name: Test Rust code
run: cargo test