mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-04-25 08:53:01 +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:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
mdbook:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@ -24,3 +27,15 @@ jobs:
|
|||||||
|
|
||||||
- name: Test code snippets
|
- name: Test code snippets
|
||||||
run: mdbook test
|
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