mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-01-04 23:50:18 +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:
|
||||
pull_request:
|
||||
@ -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
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,2 @@
|
||||
/book/
|
||||
/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…
Reference in New Issue
Block a user