mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-06-08 18:46:15 +02:00
Merge pull request #97 from google/cargo-test
Run `cargo test` on pull requests
This commit is contained in:
commit
9d41acf22d
19
.github/workflows/build.yml
vendored
19
.github/workflows/build.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Build and Test
|
name: Test
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
@ -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
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,2 @@
|
|||||||
/book/
|
/book/
|
||||||
/target/
|
/target/
|
||||||
Cargo.lock
|
|
||||||
|
1574
Cargo.lock
generated
Normal file
1574
Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user