1
0
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:
Martin Geisler 2023-01-03 15:47:48 +01:00 committed by GitHub
commit 9d41acf22d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1591 additions and 3 deletions

View File

@ -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
View File

@ -1,3 +1,2 @@
/book/
/target/
Cargo.lock

1574
Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff