Skip to content

Commit d41cc25

Browse files
committed
only doctest on modern Rust
1 parent db56a2d commit d41cc25

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,24 @@ on: [push, pull_request]
44

55
jobs:
66
test:
7+
name: Test Suite
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
rust:
12+
- stable
13+
- beta
14+
- nightly
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: actions-rs/toolchain@v1
18+
with:
19+
toolchain: ${{ matrix.rust }}
20+
override: true
21+
- name: Run cargo test
22+
run: cargo test
23+
24+
test-msrv:
725
name: Test Suite
826
runs-on: ubuntu-latest
927
strategy:
@@ -25,7 +43,9 @@ jobs:
2543
toolchain: ${{ matrix.rust }}
2644
override: true
2745
- name: Run cargo test
28-
run: cargo test
46+
# Exclude doctests here, as we don't want to clutter docs themselves
47+
# with backwards compatibility workarounds.
48+
run: cargo test --lib
2949

3050
nightly:
3151
name: Test Suite (nightly features)

0 commit comments

Comments
 (0)