mirror of
https://github.com/darkicewolf50/RustBrock.git
synced 2025-07-08 12:07:13 -06:00
finished ch17.6 and ch18 intro
This commit is contained in:
3
.github/workflows/rust.yml
vendored
3
.github/workflows/rust.yml
vendored
@ -91,7 +91,7 @@ jobs:
|
||||
|
||||
# Step 2: Run unit and integration tests (excluding documentation tests)
|
||||
- name: Run Tests
|
||||
run: cargo test --tests --verbose
|
||||
run: cd minigrep/ && cargo test --tests --verbose
|
||||
|
||||
# name of the job
|
||||
documentation-check:
|
||||
@ -121,6 +121,7 @@ jobs:
|
||||
# Step 3: Check if documentation tests were run
|
||||
- name: Check for Documentation Tests
|
||||
run: |
|
||||
cd minigrep/ &&
|
||||
DOC_TESTS=$(cargo test --doc --verbose)
|
||||
if [[ ! "$DOC_TESTS" =~ "running" ]]; then
|
||||
echo "No documentation tests were run!" && exit 1
|
||||
|
Reference in New Issue
Block a user