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:
parent
2a92487bbd
commit
1bfe3cf7a2
17
.github/workflows/build.yml
vendored
17
.github/workflows/build.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user